Mushroom Wars 2 Devs Share Production Lessons on GC Stalls and a Memory Bug
The developers of Mushroom Wars 2, a real-time strategy game with thousands of on-screen units, shared production stories from shipping across consoles, mobile, and PC. They first tackled garbage collection stalls during battles, which reached about two seconds on PS4 and Switch, by using object pools and controlling collection timing. A later crash on a low-end device traced back to a seven-year-old unit-capacity formula that a level designer had exploited by placing 5,000 units off-map. The result was buffers sized for roughly 220,000 units instead of about 4,000. The hidden issue persisted for three months before a refactor of the renderer exposed it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in