Optimizing a Projectile for Mobile Gaming

Frame Debugger

Unity

After developing the projectile, I focused on optimizing it specifically for mobile gaming. My approach centered around three key pillars:


1. Creation of a Unique Texture Sheet

I implemented a single texture sheet to consolidate multiple sprites into one.


2. Reduction in Shaders and Materials

I minimized the number of shaders and materials used in the projectile. Each unique shader/material combination typically results in additional draw calls, so reducing these elements is crucial for improving overall performance on mobile devices.


3. Use of Sorting Layers

I utilized sorting layers to organize the rendering order more effectively.

Since the only mesh I used was a simple cone, it was not necessary to reduce poly count or use a sprite in this occasion.

Results


As a result of these optimizations, I successfully reduced the number of batch calls from 8 to just 3. This is a significant improvement for mobile gaming, as fewer batch calls lead to better frame rates and overall smoother gameplay. By focusing on these optimization strategies, I have enhanced the projectile's performance, making it more suitable for mobile platforms.


Upper Projectile: 8 Batch Calls

Lower Projectile: 3 Batch Calls


Muzzle-Projectile-Explosion

Textures / Texture Sheet