Lead architect Paul Holden discusses the engine impacts of giving users free reign

Media Molecule: Games with UGC ‘need to embrace the worst case’

During the second day keynote at the Montreal International Game Summit, Media Molecule lead architect Paul Holden described how LittleBigPlanet’s lofty ambitions were achieved by ’embracing the worst case scenario’.

Because users were being empowered to create content as professional as that shipped with the game, the team had to account for extreme situations. Because the levels were dynamic, pre-baking or packing data wasn’t possible, and similarly because elaborate systems were being constructed offscreen that affected the experience, physics objects couldn’t be culled, meaning they had to simulate the whole level every frame.

"While most engines try to minimise dynamic memory allocation due to the fragmentation concerns, we had no choice but to do a lot of it, so we worked on memory managers to minimise fragmentation and align memory allocations correctly. Rather than restrict the complexity, we built a tool to manage it."

That tool, called HeapMon, wraps malloc/realloc/free calls and flushes logs to sockets or files, giving the team a view to how memory was being used. Using a swizzled memory view, the programmers were able to quickly identify bugs with the memory manager and places where unreserved memory was being misused when a reserved pool would be a better choice.

"When you are making a game that relies heavily on user-generated content, you can’t avoid the worst case. Invest in your tools, especially if you’re a small team like us, and it’ll pay dividends in the end even if you don’t immediately see the full range of uses for it. We saved multiple megabytes of RAM by using this."

About MCV Staff

Check Also

470 Pacific [Industry news] Pacific Standard Creative Launches as New Division of Pacific Standard Sound, Merging World-Class Film, Television, and Video Game Capabilities

[Industry news] Pacific Standard Creative Launches as New Division of Pacific Standard Sound, Merging World-Class Film, Television, and Video Game Capabilities

Pacific Standard Sound (PSS), the award-winning sound design and full service post production and sound company whose work spans some of entertainment's most iconic properties, today announced the launch of Pacific Standard Creative (PSC), a new division purpose-built to serve the evolving storytelling and production needs of video game development studios, advertising agencies, trailer houses, and independent productions who demand world-class sound without compromise. Pacific Standard Creative will be helmed by industry veteran Eric Marks, who brings more than a decade of audio and engineering leadership, as well as two years as the Vice President of the Motion Picture Sound Editors (MPSE).