4 ms·
I'll add one other point which is that in memory constrained platforms Lua is unrivaled in its ratio of power/memory footprint. Back in games we put the whole
by vvanders 6y ago
I'll add one other point which is that in memory constrained platforms Lua is unrivaled in its ratio of power/memory footprint.
Back in games we put the whole game state (including ai routines written by designers using coroutines) in a 400kb preallocated block on a system that had only 8mb of system ram. Worked like a champ.
- corysama 6y agoThe classic Doug Lea's Malloc with #define ONLY_MSPACES is great for this. That way you can constrain not only Lua's memory usage, but also it's fragmentation. We'd also manually run a fixed number of GC steps per frame in our games. The higher average CPU use was worth the much lower variance.