Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Preciselly because C# uses GC is common to just allocate everything in a chunk to not trigger the gc later.

Aka you minimize allocations in gameplay.



This is far from common in practice and it is only applied sporadically. Something like allocating formatted strings for the HUD is IME much more common (and done in UE5/C++ too, so not even a C# forcing GC excuse).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: