holy-unblocker / website-legacy-aio

All-in-one Holy Unblocker bundle
https://holyubofficial.net/
GNU General Public License v3.0
194 stars 2.25k forks source link

High CPU usage for no reason. #20

Closed starlite-developer closed 1 year ago

starlite-developer commented 1 year ago

I really like your project it is super fast and easy to set up Holy Unblocker.

While testing around with it and playing Minecraft Beta, I noticed that the game was kind of laggy so I began to look at the CPU usage. Even when on the options page is it using 40-50% CPU. My computer(a chromebook) isn't very powerful and Minecraft is a hard game to run so I decided to test on other pages. Here are the results of my testing:

Test: Monitor cpu usage on homepage Off Tab: Average: 0% Max: 1% On Tab: Average: 40% Max: 150%(1.5/4 cores maxed out)

This cpu usage is super high despite doing nothing. Is there a way for me to fix this?

P.S. If it's a web crypto miner, is there a way for me to throttle it more for better performance?

e9x commented 1 year ago

Yes. You may need to change the Monero node we connect your browser to.

I point you to the theatre repository if you want to bring any changes to the game. Ideally you can pull in the latest versions of Eaglercraft (for the 0.30 and 1.5.2 branch). https://git.holy.how/holy/theatre.git

For the website being very slow while idle, this is abnormal. The JavaScript ran by the website should be very minimal and optimized. I see two possible causes of this performance:

Perhaps you can run the same tests on about:blank and example.org. This would help determine if it is due to background extensions/apps or the website itself.

starlite-developer commented 1 year ago

After testing on about:blank and example.org, which didn't show any CPU problems, I'm just going to blame this on my chromebook being low quality trash.

Any way to make it any easier for my chromebook? I am experiencing 20 seconds per frame instead of frames per second for Minecraft :(

e9x commented 1 year ago

After testing on about:blank and example.org, which didn't show any CPU problems, I'm just going to blame this on my chromebook being low quality trash.

Any way to make it any easier for my chromebook? I am experiencing 20 seconds per frame instead of frames per second for Minecraft :(

I can put a pin on upgrading the Minecraft games in the theatre. Frame rates could have potentially improved since we added the game (~4 months ago).

Chromebooks will always struggle to run games due to how minimal they are.