-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stress testing #549
Comments
@chrisvxd Tried fixing this. here's a workaround I implemented. Used Screen.Recording.2024-08-12.at.2.47.06.PM.mov |
Sorry for delay @Sarfraz-droid. It's unusual to see Puck lagging that much, but it might be environment related. Two related tickets:
I'm going to close this in favour of #644. |
Hey, I was working inside puck and I found the underlying issue. Main issue is. On every drag, the entire page rerenders. Because it's currently using a nested architecture. I shifted it to storing objects in a global store. And rendering only the changed elements using zustand & useSyncExternalStore hook. Could be something to consider but would require an entire state overhaul Performance got improved by a lot! I guess using profiler puck had around 1500 rerenders on drag. It got reduced by 150. |
Hello @Sarfraz-droid , Could you share your implementation for the global store ? |
Puck seems to lag on stress test. Are there any solutions to resolve such issue??
Example - On adding multiple lists. dnd starts lagging.
Screen.Recording.2024-08-11.at.10.40.07.PM.mov
The text was updated successfully, but these errors were encountered: