r/lua • • Sep 08 '26

Lua realtime code editor complexity

Showcasing how i optimize my upcoming game with my game engine in Lua. When enabled it will show you what function or line is costly - in realtime while you play. This helped me optimize some methods that i was able to cache so it doesn't run every frame.

24 Upvotes

6 comments sorted by

View all comments

Show parent comment

4

u/nycgio Sep 10 '26

the engine has its own lua vm, it can see how long each instruction took.