Back to Writing
NOTESunityrenderingoptimizationmobileperformance
Unity - On-Demand Rendering
July 15, 2020•Updated Feb 17, 2026
On-demand rendering is a rendering technique that reduces power consumption by only rendering when necessary.
Benefits:
- Reduced power consumption
- Improved battery life on mobile devices
- Reduced heat generation
To enable on-demand rendering in Unity:
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 0;
Then use:
Screen.sleepTimeout = SleepTimeout.NeverSleep;
Or implement a custom update mechanism:
void Update() {
if (inputDetected || animationRunning) {
RequestRedraw();
}
}
This allows the game to render only when user input is detected or an animation is running.