Maingron / MainOS

MainOS (Maingron OS) is a web-based Operating System
https://maingron.itch.io/mainos
9 stars 3 forks source link

Pixel-Shift setting #45

Open Maingron opened 2 years ago

Maingron commented 2 years ago

Add a setting that allows to shift images and UI automatically to prevent (OLED) Burn-in. This is in the same scope as darkmode. Developers can then ask if pixelshift is true and potentially optimize their code accordingly.

Maybe instead of a boolean, this could be an integer, where 0 and 1 would still be the "normal" 3-4 pixel values but any higher would consider shifting around UI Elements entirely. Maybe a tachometer in a racing game would then switch positions between bottom left, bottom center and bottom right between races. And a very high value would just mean entire pixel scramble, though this would be increasingly hard to realize within HTML/CSS/JS. Maybe a CSS filter() could then help with that.

Alternatively, there could be an additional temp value for the setting indicating the "step" of pixelshift. For example, if we have a cycle with 4 steps, if the entire UI shifts every step (MainOS Desktop / Program frames PLUS Program contents), this would prevent that a program shifts towards top left while the entire MainOS shifts bottom right. (Because that would mean that UI within the program would be at exactly the same position again and only everything else shifted somewhere)

Maingron commented 2 years ago

Once this setting is added, the first thing I recommend applying it to, is the desktop background image. Because who cares if it's 10 pixels to the left or the right. This would, in theory (if MainOS gets used much by someone), drastically decrease the potential burn-in caused by the background image PLUS it should be pretty easy to implement.