gfx-rs / gfx-ocean

Compute based ocean simulation with gfx_hal :ocean:
116 stars 7 forks source link

Port to hal-0.7 #28

Closed kvark closed 3 years ago

kvark commented 3 years ago

I had to move all the logic into a structure, since winit-0.24 doesn't allow disposing things inside the render loop, so all the logic is behind an Option now. The problem on Metal appears to still be there: we are rendering for a few frames (taking 100ms each), then hanging the driver. So the rendering is correct, but it's more of a scheduling issue, perhaps? I wonder if we somehow overflow the GPU with work here.