Question by
cuchito2001 · Aug 03, 2021 at 04:26 PM ·
2d gameperformanceandroid build
Simple Unity 2d Proyect Frames drop to 4 fps after some minutes on Android Builds
Hi I am using Unity 2020.3.14f1 and I am really confused about this problem. I got this simple code using InvokeRepeating (I also tried Update and FixedUpdate) to active and inactive a sprite.
Everything seems normal but after a few minutes when I build it on my Android device (Tab s3 and S10e) ... the FPS drop to 1 or 4 ... why is this happening?
I've tried different quality level configurations.. V Sync .. and it still happens, the only solution I've found is to change the quality level before FPS drops less than 20 to refresh things again and speed things up
void Start()
{
Screen.sleepTimeout = SleepTimeout.NeverSleep;
InvokeRepeating("Function", 1.0f, 0.2f);
}
void Function()
{
sprite.SetActive(!sprite.activeSelf);
}
Comment