Performance, load times, and anti-cheat for a merge tower defense game built in Unity
A mobile tower defense game. Players merge towers to build up their base, collect dragons, and compete on global leaderboards.
01
Hunting down slow frames
I built an agent pipeline for chasing frame-time spikes. QA captures a profile snapshot, and a model works out the inputs needed to reproduce the hot frames, dumps the profile to speedscope, and proposes fixes. It then replays the same inputs from the snapshot to measure whether the fix actually helped. We got to a smooth 60fps on our min-spec devices, with no more stuck frames setting off soft ANRs.
02
Faster first launch
On first launch, the game waited to download assets before players could play anything, and the wait grew with every new piece of content. I tagged data as it was actually used and built a DAG of load-time dependencies. That extra 100 MB download before playing is gone, and the game now launches and plays from data small enough to ship inside the store package.
03
Anti-tamper and cheat detection
I added client-side memory and data anti-tamper that feeds the cheat detection heuristics. It catches the "find a value, change a value" memory editors, along with any tampering with on-device config.
1 / 3
The Twilight Towers image belongs to Fortis Games.