Skip to content

Halve redraws while the wheel moves, draw the formula rim's text in software - #19

Merged
Adiakys merged 2 commits into
mainfrom
fix/badge-redraw-and-raster-text
Nov 3, 2026
Merged

Adiakys merged 2 commits into
mainfrom
fix/badge-redraw-and-raster-text

Conversation

@Adiakys

@Adiakys Adiakys commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Two fixes found while measuring the GUI after #17.

Press badge redrawing twice per live frame. The badge on the steering wheel card faded with an animation bound to the whole device: every live frame started it again, which drew one more frame, so a moving wheel redrew at twice the live rate (120 fps). It now follows a property set only when the badge shows or hides. With the simulated rig moving: 60 fps, GPU from 14.5% to 7%.

Missing text on CPU-drawn layers. With the software renderer (and in --screenshot), the rotated wheel is drawn by raster.rs with resvg, whose font database was empty: the gear digit on the formula rim's display was left out. The layers now load the bundled Martian Mono, and resvg's text feature is asked for explicitly instead of coming from Slint's.

@Adiakys
Adiakys merged commit ac558db into main Nov 3, 2026
2 checks passed
@Adiakys
Adiakys deleted the fix/badge-redraw-and-raster-text branch November 3, 2026 23:48
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