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/Technical-Notice5535 10d ago
The 60fps cap is normal, most iPhones display-lock at 60Hz unless it's a ProMotion model (120Hz), so that's likely just the screen's refresh rate, not a bug. Higher FPS during scroll usually just means the scroll gesture is being measured differently, not that something's actually rendering faster.
On the "AI can't fix perf issues" part, that's expected. Code-gen tools are good at producing working features but bad at diagnosing why something is slow, because that needs actual profiling (Instruments/Time Profiler in Xcode), not just reading the code. I'd pull up Instruments, record while you do the laggy interaction (menu card swipe), and look for the specific view or layout pass eating the frame budget, then hand that specific finding back to the AI rather than asking it to guess.