Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. massive performance issues

massive performance issues

Scheduled Pinned Locked Moved Unsolved ScriptAPI
1 Posts 1 Posters 304 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Na
    wrote on last edited by
    #1

    When the following module:

    /// api_version=2
    registerScript({
        name: 'a',
        version: '0.0.0',
        authors: ['a']
    }).registerModule({
        name: "MyModule2",
        category: "Misc",
    }, function (mod) {
        var state = 0;
    
        mod.on("gameTick", function () {
            state++;
            if (!mc.player.onGround) {
                switch (state) {
                case 1:
                    mc.player.velocity.y += 0.1;
                    break;
    
                case 2:
                    state = 0;
                    break;
                }
            }
        });
    });
    

    is enabled on latest nextgen, the game grinds to a halt and runs at 1 FPS at most. How come? I presume this warning is related?

    [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
    The guest application code will therefore be executed in interpreted mode only.
    Execution only in interpreted mode will strongly impact the guest application performance.
    For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
    To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    About
    • Terms of Service
    • Privacy Policy
    • Status
    • Contact Us
    Downloads
    • Releases
    • Source code
    • License
    Docs
    • Tutorials
    • CustomHUD
    • AutoSettings
    • ScriptAPI
    Community
    • Forum
    • Guilded
    • YouTube
    • Twitter
    • D.Tube
    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups