Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text rendering bug with lots of text #1384

Open
Diggsey opened this issue Aug 24, 2020 · 1 comment
Open

Text rendering bug with lots of text #1384

Diggsey opened this issue Aug 24, 2020 · 1 comment

Comments

@Diggsey
Copy link

Diggsey commented Aug 24, 2020

When I have a lot of text on screen, the text starts flickering and I get weird graphical glitches, for example:
image

Becomes:
image

@alvinhochun
Copy link
Collaborator

alvinhochun commented Aug 25, 2020

It could be that the glyph cache does not have enough space for all the glyphs and they get overwritten.

Which backend are you using? If you are using the conrod_glium backend, try using Renderer::with_glyph_cache_dimensions instead of Renderer::new with a larger size (Renderer::new defaults to using a glyph cache with the same dimension as the framebuffer). The glyph caching logic in the current backend makes it possible for glyphs from "later" widgets to overwrite glyphs from earlier widgets, which I guess is happening to you due to the glyph cache not being large enough. This should be fixable but the fix might add some memory overhead.

Check out

render::PrimitiveKind::Text { color, text, font_id } => {
if you are interested.

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

No branches or pull requests

2 participants