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
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
- "GetControlID at event ValidateCommand returns a controlID different from the one in Layout event" Warning is thrown when undoing the deletion of Sprite Shape Profile
- Memory related fields in the "WebAssembly Language Features" can be set to the negative numbers
- "WebAssembly Language Features" Header in the Player Settings has a smaller indentation
Resolution Note (fix version 2020.1):
This issue is fixed in Oculus XR Plugin 1.1.5