spicylobstergames / astratomic

Survival game inspired by Noita and Starbound, fueled by Rust and Bevy.
Other
91 stars 6 forks source link

Render dirty rect bug #11

Closed Zac8668 closed 6 months ago

Zac8668 commented 6 months ago

Sometimes the dirty render rect does not update properly, I suspect is a system ordering problem, if I open the game sometimes it updates perfectly, if I close and open again it may or may not update properly.

I hope you @zicklag have an idea on how to fix this? You implemented it(by the way, thank you!) and to be honest I don't understand 100% how it works.

Here's it working perfectly: Screencast from 2023-12-29 23-15-57.webm

Here's when it does not update properly: Screencast from 2023-12-29 23-17-05.webm

To be clear, both videos are from the same binary.

I suspect the problem is in the last lines of the chunk_manager.rs file, there's also some after(..... methods I added there in hope to fix it but it didn't, those can be removed.