- Home /
Low FPS in Android
My simple game is 80-90 fps in editor but in android (Nokia 3) it's only 10fps. How can i solve this? Thanks!!!
Answer by Bodhid · Aug 18, 2017 at 02:19 PM
Your phone is not as powerfull as your computer, thats very simple. I have apps that run 2000+ fps in the editor but 60fps on android.
Use the Profiler to find the cause of your slowdowns And take a look at the Practical Optimization Guide for Mobile https://docs.unity3d.com/Manual/MobileOptimizationPracticalGuide.html
Answer by BugiGames · Apr 04, 2021 at 01:52 PM
try maybe to run your game with Screen.Set Resolution(960x540, true); because games are automatically run on Unity on full hd 1920 x 1080 which is eating lot of performance
Screen.sleepTimeout = SleepTimeout.SystemSetting;
int qualityLevel = QualitySettings.GetQualityLevel();
Time.fixedDeltaTime = 0.007f;
Application.targetFrameRate = 320;
if (qualityLevel == 0)
{
QualitySettings.vSyncCount = 0;
QualitySettings.antiAliasing = 0;
res = true;
if (res)
{
Screen.SetResolution(960, 540, true);
}
}
if (qualityLevel == 1)
{
QualitySettings.vSyncCount = 0;
QualitySettings.antiAliasing = 0;
res = true;
if (res)
{
Screen.SetResolution(1024, 576, true);
}
}
if (qualityLevel == 2)
{
QualitySettings.vSyncCount = 1;
QualitySettings.antiAliasing = 2;
res = false;
}
something like this, also you need create script for saving data for quality from main menu.