- Home /
Game runs slow on Android... unless profiler is connected?
I'm trying to run a very simple scene on Android (< 20 draw calls, < 5k vertices, very little C# scripting). It runs perfectly from the editor in Windows, but if I build an apk and install it on my Nexus 6 it barely runs at all... the whole phone halts to a standstill and even quitting the app is near impossible because I have to drag the status bar down to access the home button and the phone's UI takes its sweet time showing up.
HOWEVER!
If I attach my phone to my computer through USB and run Unity's profiler, the game runs smooth as silk (100+ fps)! Close the profiler and it's back to chugging away and freezing up the phone. Open the profiler back up and it's back to running fine...
Very very peculiar behavior. Nothing is being printed to the console.
Any ideas about what could be causing it to run slow without the profiler?
More info:
Running Unity 5.0.0f4 Personal
Targeting Android 4.0
Nexus 6 running Android 5.0
Well I dug up my old Nexus 7 (2012, also running Android 5.0) which is significantly slower than the Nexus 6, and the game runs just fine on the Nexus 7 without the profiler. Also runs fine on my Nexus 4 (Android 5.0). So maybe this is just a Nexus 6 issue?
Your answer
Follow this Question
Related Questions
perfHUD & Unity 0 Answers
Android lag on Nexus 7 (2012) 0 Answers
Does the Profiler.BeginSample generate garbage? 0 Answers
Unable to connect Profiler to Android 5 Answers