@NohatCoder@mastodon.gamedev.place
Post #957131
2026-04-04 22:40 UTC
Replies (5)
-
@tumdum@mastodon.gamedev.place 2026-04-04 23:10
@NohatCoder 1 byte allocation now wastes 4095 bytes + in-kernel metadata.
-
@JennyFluff@chitter.xyz 2026-04-04 23:24
@NohatCoder single use memory? techbros going too far this time
-
@blair@mastodon.gamedev.place 2026-04-05 06:40
@NohatCoder Fun bit of trivia: I did this on God of War (2017) because I couldn’t find which job was stomping over another’s stack. I allocated 1024 stacks and gave a new one to each job. It took a few frames before I exhausted them and had to reuse one. But the stacks had virtual addresses that were unmapped the moment a job was done — so if a stack pointer was used after a job, it crashed! Which it never did — turns out, I wasn’t chasing a memory stomp. But that’s a story for another day.
-
@aachrisg@mastodon.gamedev.place 2026-04-05 10:50
@NohatCoder cache misses :(
-
@cloudhop@equestria.social 2026-04-05 23:43
@NohatCoder I was going to protest that there is no way this could possibly work, but even if you assume minecraft allocates 8 GB of memory every second, it would take 73 years to run out of address space, so if you just ignore memory region resizing optimizations...