bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.13k stars 155 forks source link

Reloading 3d assets in the middle of rendering. #661

Closed bryanedds closed 9 months ago

bryanedds commented 10 months ago

The reload message is coming in the middle or after other messages. Therefore existing render tasks will have references to opengl resources that will be destroyed by reloading, so consider deferring the reload until end of frame.

bryanedds commented 9 months ago

Moved to end of frame.