Skip to content

Fix text atlas double upload and stale glyphs in on-demand windows - #101

Merged
diiviocity merged 1 commit into
vlang:masterfrom
diiviocity:fix/comply-to-updated-renderer
Oct 26, 2026
Merged

diiviocity merged 1 commit into
vlang:masterfrom
diiviocity:fix/comply-to-updated-renderer

Conversation

@diiviocity

Copy link
Copy Markdown
Member

The frame flushed the font atlas a second time after drawing, on top of the flush gg.begin already does, so sokol rejected the second sg_update_image of the same frame. The flush now happens once, in gg.begin.

Glyphs rasterized during a frame reach the GPU on the next frame. In on-demand refresh mode nothing schedules that frame, so the window kept the stale atlas. A frame that uploads pending glyphs now requests one more paint.

depends on
vlang/v#31208
vlang/v#31203

The frame flushed the font atlas a second time after drawing, on top of the
flush gg.begin already does, so sokol rejected the second sg_update_image of the
same frame. The flush now happens once, in gg.begin.

Glyphs rasterized during a frame reach the GPU on the next frame. In on-demand
refresh mode nothing schedules that frame, so the window kept the stale atlas.
A frame that uploads pending glyphs now requests one more paint.
@diiviocity
diiviocity marked this pull request as ready for review October 26, 2026 15:57
@diiviocity
diiviocity merged commit cca2d88 into vlang:master Oct 26, 2026
0 of 6 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