Re:Baby's First Garbage Collector
by qznc on Monday December 09, 2013 @02:22AM
(#6873196)
There are research prototypes for such GCs and usually the performance decreases if you want time guarantees. As far as I know there is no GC, which could be used in a AAA FPS game. Convincing would be CryEngine, UnrealEngine, idTech, SourceEngine, etc starting to use a GC in their rendering, physics, sound parts.
[ Parent
| on HN ]
Re:Baby's First Garbage Collector
by hornetblack on Tuesday December 10, 2013 @12:02AM
(#6879059)
John Carmack suggest that someone should write a engine in more functional way (with GC).
So you would reconstruct all the objects given access to the last frame's memory, (which would immutable). Then run the GC between frames. This may cause problems if a slower computer never has time between frames to run GC. (Running at 27fps trying to reach 30fps, my old Laptop would do this most of the time)
The Witcher 2 for the XBox 360 has a GC on their engine, although they did face some issues.
http://www.makinggames.de/index.php/magazin/2155_porting_the...