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

Paulo Pinto pjmlp at progtools.org
Wed Nov 25 10:24:28 UTC 2020


On Wednesday, 25 November 2020 at 08:25:33 UTC, Ola Fosheim 
Grostad wrote:
> 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.

Which is also possible alongside tracing GC implementations.


More information about the Digitalmars-d mailing list