(Replying to PARENT post)

The other question is: can I at least time this GC so it doesn't overlap the refresh interval and skip a frame? Because 1ms may not be significant if it lands in the middle of the 16ms period, but if it lands at the end you've just produced jitter.

So I'd think a GC designed for a gaming system would take this into account; incremental concurrent GC that can be timed to happen at the start of each each frame interval and be paused if it gets close to the end.

๐Ÿ‘คcmrdporcupine๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I remember the oddly named System.pauseForGCIfCollectionImminent() AS3 (Flash) function:

https://help.adobe.com/en_US/FlashPlatform/reference/actions...

๐Ÿ‘คmarkdog12๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

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.
๐Ÿ‘คcorysama๐Ÿ•‘6y๐Ÿ”ผ0๐Ÿ—จ๏ธ0