VRAM Leak when using OpenXR

Consistently see VRAM fail to be released between play modes. Even on a default “Basic (URP)” scene, if you watch VRAM, it’ll fail to release some memory after exiting play session, resulting in a leak. Builds up pretty quickly in my case, about 200MB. After a few hours of coding and feature testing, my 4090 was showing ~20GB VRAM allocated.

This doesn’t happen when playing the exact same scene, but unchecking “Initialize XR on Startup” in XR Plug-in Management under Project Settings.

Surprised I’ve not seen this mentioned, but I can reproduce this every time in two projects - one running 6000.0.33 & the other .39.

Tested with Quest 3 (using Steam Link) & Pimax 8kX.

1 Like