TheSquiddyLink / SplatoonRandomizer

A highly configurable randomizer website for Splatoon 3
https://thesquiddylink.github.io/SplatoonRandomizer/
2 stars 0 forks source link

High CPU Usage #2

Open TheSquiddyLink opened 4 weeks ago

TheSquiddyLink commented 4 weeks ago

The website currently has a very high CPU usage even when not being used.

image

Current cause is unknown

TheSquiddyLink commented 3 weeks ago

After doing some research it seems the issue is likely due to the amount of event listeners. The current idea is to convert the config options into a form, and then use on general event listener to handle the logic. A branch will be created once this has been decided.

https://github.com/TheSquiddyLink/SplatoonRandomizer/blob/2e34a454b6ab683d8b190d04d02ee7bd4b5df667/script/main.js#L77-L127

TheSquiddyLink commented 3 weeks ago

After Further Investigation it seems that the cause of the high CPU usage is due to the repainting.
image It is possible that fixing this warning would resolve this issue. This will be tested. image