Garbage Collection and gamedev - tl;dr Yes we want it, so let's solve it

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Wed Nov 25 08:25:33 UTC 2020


On Wednesday, 25 November 2020 at 07:54:57 UTC, Araq wrote:
> On Wednesday, 25 November 2020 at 07:43:23 UTC, Ola Fosheim 
> Grostad wrote:
>> ARC does not stop the world.
>
> He means the "unbounded" destruction phase when an enormous 
> data structure needs to be free()d. This problem -- if it 
> really comes up -- is not part of the reference counting 
> mechanism at all. Manual memory management with free() calls 
> produces exactly the same effect.

It could happen in a game where you can teleport, but ARC can be 
combined with scene allocators. So if you delete the whole scene 
you would not need to deallocate individual objects.


More information about the Digitalmars-d mailing list