> For the complete documentation index, see [llms.txt](https://wiki.playgama.com/playgama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.playgama.com/playgama/guides/performance-and-optimization.md).

# Performance & Optimization

Performance work starts with the first playable moment: the game should load quickly, stay responsive, and avoid unnecessary downloads before the player can interact.

Focus on these areas first:

* **Initial download size:** Keep the first package as small as possible. Move non-critical content out of the initial load.
* **Loading flow:** Show progress clearly, avoid long blank screens, and enter gameplay as soon as the core assets are ready.
* **Runtime stability:** Avoid freezes, memory spikes, and layout shifts during gameplay, ads, orientation changes, and tab switching.
* **Asset delivery:** Compress assets, split large content, and load heavy resources only when needed.
* **Platform limits:** Check target platform requirements before submission. Some platforms set strict limits for initial download size, total package size, and loading time.

Engine-specific implementation details are listed in child pages.
