Within regards to custom render engines, I haven’t seen any documentation about the behavior of when Blender decides to call the RenderEngine’s __del__()
function.
It’s seemingly sporadic, currently when I move the camera around the viewport, after about 3 seconds or so engine just deletes itself, leaving everything to just halt midway through interactive rendering sessions, obviously this can be bypassed by just not deleting your session
when blender calls __del__()
but surely there is a better way.
It seems updating materials and a slew of other things cause engine to get deleted by blender, I’d like to better understand why this is happening, and best practices to keep in mind when wrapping a custom render engine around this API behavior.