Re:Modern garbage collection: Part 2
by corysama on Saturday December 14, 2019 @01:30PM
(#21791155)
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.
[ Parent
| on HN ]
Re:Modern garbage collection: Part 2
by brighteyes on Saturday December 14, 2019 @01:35PM
(#21791194)
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...