Asset Bundle Builder (Custom Editor Tool)

A lightweight bundle-building tool

We outsourced one of our games to an external company, and when we received the finished game it came to our attention that it far exceeded the bundle sizes we normally have for the app. I reduced the bundle size down from 20mb to 8mb primarily by reducing textures and geometry, and by shortening audio tracks, but in the process I wondered how this could’ve been avoided in the first place. It occurred to me that external companies in particular had little way of easily knowing what the actual, built size of their asset bundles would be for Sumdog.

To address this problem, I designed and developed a simple, lightweight editor tool that lets in-house and external developers for Sumdog to build specific asset bundles and their dependencies locally. It can be accessed from a dropdown Sumdog tab in the editor and lets the developer add the bundles they want to build by selecting them from a dropdown list.

Development for this was fairly iterative, as I received invaluable suggestions from my colleague while this work was in and out of Review. He suggested, for instance, that the tool could log a report to the console, that you could choose the build platform within the window, and that we use a dropdown list of the available asset bundles rather than requiring developers to type them in. I implemented these suggestions and was pretty happy with the end result.

When we next had this external studio develop a game for us, I asked them if they could use this tool during development to ensure the bundle sizes didn’t exceed 8mb (and would ideally be smaller than this if possible). The game we received was nicely below that limit (5.5mb), so no drastic cuts were required from us to ship the game at a reasonable size.

We’ve also benefited from this tool, using it during our development of every single subsequent bundle for the app.