Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

VRSettings.LoadDeviceByName() is creating a memory leak on Android.

$
0
0
I'm using this method (LoadDeviceByName) in my game followed by VRSettings.enabled = true to start VR at runtime. But when I try this approach, the GfxDriver (only the GfxDriver!) starts to grow every frame (in 20 seconds, memory allocated by the GfxDriver jumps from 40MB to 160MB or even 200MB+). The game can't even stand for a minute and it crashes. Here's my code:

Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.VR;...
VRSettings.LoadDeviceByName() is creating a memory leak on Android.

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>