lucasmerlin/egui_skia

Windows don't render with rasterizer

Closed this issue · 2 comments

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

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?

That did the trick, thanks for the quick fix!