Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
corysama
· 6y ago · 0 comments
You can manually trigger GC in Lua. I’ve used this to trigger light GC work every frame in some games to buy more consistent GC times (no spikes) at the cost of higher average times.
Comments
[–]
brighteyes
6y ago
Chrome does this too, it times GCs for when it has free time or is rendering in another thread,
https://blog.chromium.org/2015/12/smarter-garbage-collection...