There was an error while loading. Please reload this page.
1 parent a40cee5 commit 78409acCopy full SHA for 78409ac
1 file changed
src/engine/internal/engine.cpp
@@ -327,6 +327,12 @@ void Engine::compile()
327
328
for (const std::string &opcode : unsupportedBlocks)
329
m_unsupportedBlocks.insert(opcode);
330
+
331
+#ifdef USE_LLVM
332
+ // Preoptimize to avoid lag when starting scripts for the first time
333
+ std::cout << "Optimizing target " << target->name() << "..." << std::endl;
334
+ compiler.preoptimize();
335
+#endif
336
}
337
338
// Compile monitor blocks to bytecode
0 commit comments