(no title)
TapamN | 1 year ago
When updating the cursor position, check if line being output overlaps with the cursor. If it isn't, it's safe to update the hardware cursor immediately, without tearing. Otherwise, defer updating the cursor until later (vblank would work) to avoid tearing.
Of course, this assumes it's possible to read what row of the frame buffer is being displayed. I think most hardware would support it, but I could see driver support being poorly tested, or possibly even missing entirely from Linux's video APIs.
arghwhat|1 year ago
unknown|1 year ago
[deleted]
gf000|1 year ago
But given that different displays work differently, I'm not sure it would worth the hassle.
bandrami|1 year ago