Open databasedav opened 5 months ago
Ping @bytemunch :)
simply calling buffer.draw
after construction of the CosmicEditBundle
does not seem to suffice
@databasedav trying to reproduce the issue... basically I added:
no noticeable lag even in debug mode (I am on M1 Pro)
I can reproduce, got a white flash on setting fill_color
to both DARK_GRAY
and NONE
, so can assume it breaks on all fill colors.
Will be an issue somewhere in the instantiation of the target sprite, I think it has a frame of blank before it's drawn to. May be able to fix by removing the funky sprite making and swapping steps, there's probably a much more ergonomic way of adding the target sprite to the entity.
https://github.com/Dimchikkk/bevy_cosmic_edit/assets/43527203/73f22e8d-d07f-417d-84c4-0d1e42f92dc1
White flash with fill_color set, 3x in a row
Looks like it's more than one frame, maybe two or three.
repro by adding
fill_color: CosmicBackgroundColor(Color::DARK_GRAY)
to thebasic_ui
example, the window flashes from white to grey, even in release modei'd like to address this but need some guidance, how can i synchronize the spawn and the fill?