Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yeasku
20 days ago
|
parent
|
context
|
favorite
| on:
Static Allocation with Zig
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.
badsectoracula
19 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).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Aka you minimize allocations in gameplay.