Comment by ynajjarine

5 hours ago

[flagged]

I bet there's some way to make the GPU do the color conversion. It's not like it's doing much otherwise...

Last I checked, the 60fps frame buffer conversion resulted in the system idling at 18% CPU. Certainly not ideal. I'd love to optimize this further.

This solution’s COU cost can be significantly improved by using memory protection. You protect the frame buffer from writes. The first time it is written, you take a fault, and start refreshing every 60 Hz and leave it writeable. After some number of refreshes, you protect it again, the idea being is that the UI may now be quiescent. I do this in my Palm OS port for the same reason.

  • I'm intrigued by this technique! Will look into it, thanks for the tip!

    • sample impl is in rePalm sources, but i described basically all there is to it :)

      saves a lot of CPU