The FPS is dropping by twice the number in project build #1523
Replies: 4 comments 5 replies
-
We are gonna need more info to help you, can you share anything at all? |
Beta Was this translation helpful? Give feedback.
-
When I host the app locally, I am able to get a max FPS of 60. But when I take build(react-scripts build) of the same the max FPS is 40, making the app laggy. FYI I used Stats.js to find the max FPS. |
Beta Was this translation helpful? Give feedback.
-
Performance regression in production can be related to bad babel transforms that are not optimized, when it turns fast code that runs in loops into es11 compat code. I would try upping the browserslist field in package json. Other than that: devtools. If it's fast in dev but slow in prod it's gotta be something ... |
Beta Was this translation helpful? Give feedback.
-
Try without adding stats js. Because I ran into same issue when I was using spector js or r3f-perf. My app would run perfectly till I used to add r3f-perf component in my canvas or inspect with spector js extention. So maybe you can try that first. |
Beta Was this translation helpful? Give feedback.
-
Need help to diagnose this.
Beta Was this translation helpful? Give feedback.
All reactions