Remix.run Logo
ynajjarine 4 hours ago

[flagged]

duskwuff 2 hours ago | parent | next [-]

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

MarioMan 30 minutes ago | parent [-]

It looks like copying from EFB to XFB can do an RBG to YUV conversion automatically.

blkhp19 2 hours ago | parent | prev | next [-]

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.

dmitrygr 4 hours ago | parent | prev [-]

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.

blkhp19 2 hours ago | parent [-]

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

dmitrygr an hour ago | parent [-]

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

saves a lot of CPU