I started using RenderPipelineManager.beginCameraRendering to render my instanced grass for each camera and cull it by distance for each camera separately. Over time, the editor crashes, and it happens only when I minimize it. If I stay in the window, everything is fine, but as soon as I minimize it for 10 seconds, it crashes immediately.
Logs:
https://pastebin.com/Xqvn6C6R
The most interesting part in the logs:
Assertion failed on expression: 'm_CmdState == kActive'
Crash!!!
d3d12: swapchain present failed (887a0005).
d3d12: swapchain present failed (887a0005).
d3d12: Device failed error (887a0005).
d3d12: Device removed reason (887a0006).
d3d12: GfxDevice was not out of Local memory
d3d12: Local memory usage:
Budget: 7618953216
CurrentUsage: 642113536
AvailableForReservation: 67108864
CurrentReservation: 3943694336
d3d12: GfxDevice was not out of Non-Local memory
d3d12: Non-Local memory usage:
Budget: 16335927296
CurrentUsage: 545198080
AvailableForReservation: 0
CurrentReservation: 8302181376
GrassRenderer:
https://pastebin.com/Q7ywEGET
Before that, I got a scene view camera in editor mode and the main camera in play mode, and everything worked fine. The number of instances is ~7.5k, the number of visible instances is ~1.5k at a rendering distance of 100 m.
I'm using 6000.3.4f1 version
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.