Hi, and thanks for taking the time to read.
Firstly let me say that I’ve been reading optimization documentation for a few days now - and I still can’t figure out what the cause of this issue is. I’ve tested on 6 different devices (iOS/Android) - each of which produce this issue.
I’ve found many threads highlighting this issue - but none that were conclusively answered - just vague suggestions that usually only go as far as “check the profiler to see what’s going on, and then fix it.” Although I understand you can only be so specific without seeing the project.
I have a relatively basic 2D game that uses Input.acceleration as an input. I have a dozen or so canvas elements (images, buttons), and a bit of networking using Photon.
The profiler shows absolutely nothing out of the ordinary - but after running the app for ~5 minutes, the phone gets significantly warmer. After 10+ minutes it gets hot, and a bit longer after that I can see that the phone is starting to limit the app’s processes by lowering the frame rate.
Things I’ve tried:
- Enabling/Disabling VSync
- Setting target frame rate
- Texture compression
- Lowering quality settings to “Fastest”
- Testing on several different devices
- Checking memory allocation (it’s around 114mb on iOS)
- Lowering the increment at which I’m polling the accelerometer
- Deep profiling from the device and editor
Thanks for the help!
Addyarb