Wolfyxon / 3ds-web-stuff

A collection of browser games and other stuff for the Nintendo 3DS
https://wolfyxon.github.io/3ds-web-stuff/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

debloat the brower #33

Closed Trickiy closed 6 months ago

Trickiy commented 6 months ago

Disabling some if not all of the stuff that is running in the backround to free up the CPU and memory this would allow for better perfomace. Like not letting anything that is suspended to run while in the browser. I don't know how this would be done but something like this is all ready doable on windows and Linux. Thru a task manager and I have seen in Khan academy people disable the loop protection setup in the Khan academy's javascript sandbox. So it is at least theoretically possible I think.

magiczocker10 commented 6 months ago

The browser is quite limited and we can't disable system features. Only stuff we could reduce would be removing unused functions from global.js and other global scripts. All my games only use global.js to center the screen and prevent it from moving.

Wolfyxon commented 6 months ago

Exactly as magiczocker10 said. Also if accessing system components and altering the browser's behavior was possible via JavaScript, it would pose a terrible security risk to the system.

We'll consider removing unused features and moving some less commonly used of them to importable libraries instead.

Trickiy commented 6 months ago

Ok I wasn't expecting a full yes knowing were your guys skill is at the moment and the security risks that com with disableing system features. Wich is 100% possible I've seen the Chromebook get hacked with just javascript Which makes JavaScript more powerful than we all may think. If you guys don't believe me then just search for the ltmeat hack can be found here on github.

magiczocker10 commented 6 months ago

The LTMEAT exploit is for chromium based browsers, which is not used on the old/new 3DS.