You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am confused by this request. The time variable limits the animation to 60fps (which was previously an issue for high refresh rate monitors). Changing that, while possible, would make the animation choppy. In essence, changing it to 30fps will draw half as often.
You are mentioning CPU usage, which is related to how much confetti is being used. To lower CPU usage, you can use less confetti. Or rather, CPU usage will go right back up if you lower the framerate and increase the amount of confetti. I am not sure that a configurable framerate is the answer to performance issues. Can you clarify what case you are seeing these performance issues in?
Currently the code is as follows:
var TIME = Math.floor(1000 / 60);
Which results in a CPU usage of ~100%.
Setting TIME to, e.g. Math.floor(1000 / 30), reduces the CPU usage to 50-60%.
So, please add an option to set this TIME
The text was updated successfully, but these errors were encountered: