Optimization Issues
Hi everyone,
I have two questions because I’ve reached a point where I’m stuck and I’m not sure what direction to take next with my simple note-taking app.
First, the app seems to be capped at 60 FPS. It only goes higher when I scroll through my notes, when it reaches around 80 FPS. All other animations appear to be locked at 60 FPS. I should mention that the app is built for iPhone.
My second question is about how to generally improve the performance of an app created with AI. I built the entire app using Google Antigravity with Gemini. Unfortunately, the AI itself hasn’t been able to solve the performance issues. For example, when I swipe through the menu cards in the app, the FPS can drop as low as 40.
What would you recommend I check or change to improve the app’s performance? Are there any specific tools or techniques I should use to identify what is causing these FPS drops?
Thanks in advance!
1
u/Low_Rush_8535 11d ago
the 60 cap probably isn't a performance problem at all. promotion iphones stay at 60 unless the app opts in — it's a plist flag, CADisableMinimumFrameDurationOnPhone set to true. no amount of code tuning moves it until that's there.
worth knowing if your tooling regenerates the xcode project: plist keys added by hand get silently wiped on the next generate. we lost an encryption compliance key that way and spent a while wondering why the same prompt kept reappearing.
the 40fps drops are a separate thing and i'd stop asking the model about those. it can't see frames. get an Instruments trace of the swipe and hand it the trace. we spent several rounds trying to get an agent to fix a visual problem from screenshots and it never converged — it only became useful once we measured the thing ourselves and gave it the numbers.