top | item 45519422

(no title)

gnulinux | 4 months ago

GC is ok as long as you aren't writing some factorio-like etc. Modern computers are perfectly fine doing shit ton of useless stuff 120 times a second without blinking an eye.

discuss

order

martindbp|4 months ago

If you're allocating stuff every frame you'll run into problems quickly. Sure, you can use an object pool or arena allocator, but then you're basically circumventing GC.

yencabulator|4 months ago

malloc often isn't fast enough for games either; arena allocators and ECS came to be for a reason.