Ejemplo n.º 1
0
 /// <summary>
 /// Updates latency values
 /// </summary>
 void UpdateLatencyValues()
 {
     if (ShowVRVars == true) // limit gc
     {
         float Ren = 0.0f, TWrp = 0.0f, PostPresent = 0.0f;
         OVRDevice.GetLatencyValues(ref Ren, ref TWrp, ref PostPresent);
         if (Ren < 0.000001f && TWrp < 0.000001f && PostPresent < 0.000001f)
         {
             strLatencies = System.String.Format("Ren : N/A TWrp: N/A PostPresent: N/A");
         }
         else
         {
             strLatencies = System.String.Format("Ren : {0:F3} TWrp: {1:F3} PostPresent: {2:F3}", Ren, TWrp, PostPresent);
         }
     }
 }