massive performance issues
Unsolved
ScriptAPI
-
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.