cryscan / bevy-hikari

A Realtime Path Tracer for Bevy.
Other
349 stars 15 forks source link

Slowdown on material change #90

Open Shatur opened 1 year ago

Shatur commented 1 year ago

I recently added objects collision detection in my game and change base_color field of all object material to red when there is a collision: изображение But I noticed that if I change same base color of the same material multiple times - the game starts to slowdown and memory usage increases. And It happens even when bevy-hikari is disabled. I suspect that there could be a memory leak. I also would expect to not have any materials preprocessing from hikari side when the plugin is disabled.