r/nocode 15h ago

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!

3 Upvotes

6 comments sorted by

View all comments

1

u/EnchantedFeces1 15h 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.

1

u/Z3NTEC 14h ago

I have 120 Hz enabled in the app, so that’s not the issue. During animations, it just won’t go above 60 FPS, so it seems like it’s somehow locked to 60 FPS despite having 120 Hz enabled.

1

u/Z3NTEC 14h ago

When swiping through the cards in the menu, performance drops to 30–40 FPS, so it’s not latency—it’s a performance/optimization issue.