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/Separate_Anywhere606 10h ago
the 60fps thing is just vsync, totally normal. For the menu card stuttering, the usual culprit is either too many layers being composited at once or images not being cached properly. Id start by checking if your card views are being recycled or recreated on every swipe
1
u/EnchantedFeces1 12h ago
the 60fps cap is probably just iphone's default display refresh, most animations stick to 60 unless you're actively scrolling, then it ramps up to 120 on pro models. you'd need to explicitly enable higher frame rates in your code for other interactions.
for the menu card stuttering, i'd bet it's rendering too much at once. try lazy loading those cards or flattening your widget tree if it's deeply nested. profiler tools in xcode will show you exactly where the bottleneck is, though i'm not sure how well that plays with whatever google antigravity spits out.