Skip to main content
Hot Chocolate
← BACK TO NEWS
DEV LOG

Finding the Stall: What Mobile Combat Taught Us About Performance

Why testing moved beyond enemy-count reductions, how reusable sound buffers changed the result, and why local diagnostics remain separate from the hosted game.

The difficult part of the mobile slowdown was that it looked like a combat problem. The game could begin smoothly, then become difficult to aim after a few seconds or an ability activation. Capital-ship shield work was an understandable suspect because it appeared during busy encounters. Reducing enemy counts and firing rates reduced the amount happening, but that did not identify the operation responsible for the worst pauses. The useful question became what changed during the brief periods when the same encounter suddenly ran smoothly.

Measure the actual session

Local performance instrumentation separates update, drawing, collision, effects, and HUD costs, then reports bounded summaries rather than sending a request for every frame or bullet. Targeted diagnostic checks allow one area to be examined at a time during play. In the recorded Safari investigation, synchronous audio playback showed stalls much larger than the measured shield-update calls. That is evidence for a contributor in those sessions, not proof that every graphics or browser-scheduling issue was solved.

Decode before combat, reuse during combat

The sound-effects path now prepares decoded audio buffers before the mission begins and reuses them through Web Audio voices. Repeatedly firing a familiar weapon no longer needs to ask a fresh media playback path to do the same preparation during a sensitive frame. Downloads and decoding have bounded concurrency and a memory budget. The existing audio manager still decides volume, cooldowns, priorities, looping, and dialogue ducking; caching is not a new set of sound-design rules.

This work also applies to desktop sound effects. A desktop browser may hide a stall that is obvious on a phone, but duplicate preparation still does not help the frame budget. Music remains a separate playback system rather than being pulled wholesale into the short-effects cache. Browser interruptions need attention too: user gestures can resume an interrupted audio context without downloading and decoding the entire sound collection again.

Stop redrawing what has not changed

The visual side follows the same principle. Cached HUD and text rendering reduce repeated canvas work, and a mobile render-resolution limit avoids paying for physical pixels that add little readability on a small screen. Lower-detail effects remain useful, but fewer particles should not silently mean weaker shields or a different boss objective. Procedural explosions and quality-aware effect limits help control visual cost while retaining a recognizable response when a unit takes damage or is destroyed.

Separate performance choices from combat balance

Once the audio work improved the local result, Medium and High could return to the canonical desktop population and player-firing profile. Low deliberately retains a lighter combat profile, including a four-ship limit and slower player firing, with stat investment still affecting firing speed. This distinction should be visible in testing rather than described as a mysterious global difficulty change. Mobile projectile-travel adjustments live in their own platform configuration instead of being hidden inside individual enemy implementations.

Keep the laboratory local

The temporary live monitor belongs to the explicitly configured local diagnostic setup. The updated hosted client does not need to connect to a developer's computer, and monitor controls must not cover Dev Tools. This is separate from player progression and does not require a database change. The next useful evidence is sustained play across devices, quality settings, late-game encounter types, and interrupted browser sessions. A smooth local run is an important result; calling that a guarantee for every phone would skip the very lesson that made the investigation productive.

Read the development milestone