Search Issue Tracker
Fixed in 2020.1.X
Votes
1
Found in
2018.1.0b12
Issue ID
1195557
Regression
No
[XR][XR SDK][Oculus] In mirror view, Render viewport scale changes take effect one frame later than expected
When using XR SDK oculus 1.1.1 and higher changing the render viewport scale results in a single frame of the blit to mirror screen occurring incorrectly
1) Create a new project
2) Add Oculus Loader to XR Management standalone window
3) Add the script attached to this bug report to any game object in the scene
4) enter playmode
5) Observe every 2 seconds the render viewport scale changes
6) observe one frame where the viewport is blitted incorrectly into the mirror view on render viewport scale changes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
public class RenderViewportScale : MonoBehaviour
{
float renderViewportScale = 1.0f;
// Start is called before the first frame update
// Update is called once per frame
private float[] values = {0.2f, 0.4f, 0.8f, 1.0f};
private float time = 0.0f;
private float changeTime = 2.0f;
private int value = 0;
// void Update()
// {
// float value = 0.5f * (1.0f + Mathf.Sin(2.0fMathf.PI 0.1f* Time.time));
// XRSettings.renderViewportScale = value;
// }
void Update()
{
time = Time.deltaTime;
if (time > changeTime)
{
value+;
XRSettings.renderViewportScale = values[value % values.Length];
time = 0;
}
}
}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
Resolution Note (fix version 2020.1):
This issue is fixed in Oculus XR Plugin 1.1.5