Y
Hacker News
new
|
ask
|
show
|
jobs
by
yeasku
163 days ago
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.
1 comments
badsectoracula
162 days ago
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).
link