EmiOnGit / warbler_grass

A bevy plugin for creating 3d grass in your game
Apache License 2.0
137 stars 11 forks source link

Dither speedup and async loading #88

Closed EmiOnGit closed 3 months ago

EmiOnGit commented 4 months ago

Fixes #81 Fixes #86 Dithering gets a speedup by slightly optimizing the code. The dithering of chunks now runs async. in the background instead of blocking the frame. This is especially useful for any editor that uses the dithering code. Also a event system was introduced to better track the dithering of certain chunks. The new dithering code handles errors better and throws an error event instead of panicing. The most obvious error being that an entity gets deleted while the dithering runs in the background.

EmiOnGit commented 4 months ago

@ethereumdegen how does this work for you? I believe that this pr should solve the problems we had before (crashing if prepass component on camera and polling of completed task, stutter on dithering)