3 ms·
Ease of embedding has been pointed out. Another reason for using Lua in games is that its garbage collection strategy is well-suited for the task. Python uses
by hashmal 6y ago
Ease of embedding has been pointed out.
Another reason for using Lua in games is that its garbage collection strategy is well-suited for the task.
Python uses reference counting (which has a predictable performance profile but can lead to long pauses if a large object graph is deallocated at once) and stop-the-world GC for reference cycles.