Hacker News new | ask | show | jobs
by gnulinux 256 days 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.
1 comments

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.
malloc often isn't fast enough for games either; arena allocators and ECS came to be for a reason.