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

Windows don't render with rasterizer #11

Closed
TheZoq2 opened this issue Oct 8, 2023 · 2 comments
Closed

Windows don't render with rasterizer #11

TheZoq2 opened this issue Oct 8, 2023 · 2 comments

Comments

@TheZoq2
Copy link

TheZoq2 commented Oct 8, 2023

I was expecting cargo run --example rasterizer --features cpu_fix to render a few windows but it does not. It only renders the sidebar, the menu, and a transparent area in between

output

@lucasmerlin
Copy link
Owner

The problem is that egui doesn't render windows on the first frame, I think because it doesn't know their sizes yet.

I've released egui_skia 0.4.0 adding an option to rasterize to set how many frames should be rendered before the screenshot is taken, and made the default 2 so windows are always visible. Does this fix your problem as well?

@TheZoq2
Copy link
Author

TheZoq2 commented Oct 13, 2023

That did the trick, thanks for the quick fix!

@TheZoq2 TheZoq2 closed this as completed Oct 13, 2023
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