Skip to content

Comments

Add FB_DAMAGE_CLIPS support to bbulk renderer#210

Merged
kdj0c merged 8 commits intokmscon:mainfrom
kdj0c:damage_clip
Jan 15, 2026
Merged

Add FB_DAMAGE_CLIPS support to bbulk renderer#210
kdj0c merged 8 commits intokmscon:mainfrom
kdj0c:damage_clip

Conversation

@kdj0c
Copy link
Contributor

@kdj0c kdj0c commented Jan 12, 2026

This allows to only redraw what is needed, for the bbulk renderer.

This makes it much faster on some old hardware, like mgag200, and also on some Virtual driver.

@kdj0c kdj0c force-pushed the damage_clip branch 2 times, most recently from 42a1931 to b3cfc86 Compare January 12, 2026 09:23
Jocelyn Falempe added 8 commits January 14, 2026 13:39
So it can be re-used to compute the damage rectangles later

Signed-off-by: Jocelyn Falempe <[email protected]>
To set damage rectangles with the FB_DAMAGE_CLIPS property.

Signed-off-by: Jocelyn Falempe <[email protected]>
Returns true if the whole framebuffer needs to be redrawn.

Signed-off-by: Jocelyn Falempe <[email protected]>
Signed-off-by: Jocelyn Falempe <[email protected]>
It's better to have all drawing code in the text renderer
For the bbulk renderer, it allows to not redraw the margins on each
update.
For the gltex renderer, it allows to use glClear() with the
background color.

Signed-off-by: Jocelyn Falempe <[email protected]>
This mark the cell as damaged, and allows some simplifications.

Signed-off-by: Jocelyn Falempe <[email protected]>
 * damage the contiguous cell when an "overflow" cell changes.
 * reset the overflow flags of the contiguous cell.

Signed-off-by: Jocelyn Falempe <[email protected]>
@kdj0c kdj0c merged commit c1f7e84 into kmscon:main Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant