- Home /
Question by
trozwadowski · Mar 07, 2019 at 10:47 AM ·
renderingvrperformance
Daydream RenderTexture.SetActive spike
Hello, I'd like to ask a question and answer it to share what I've found out.
So, while testing a VR app on Daydream, I've noticed that after returning to menu and going back to the app or after resuming the app after it was paused something very bad happened to the app's performance.
Profiler shows continous render spikes at RenderTexture.SetActive that can take up to 300ms. What is happening?
Comment
Best Answer
Answer by trozwadowski · Mar 07, 2019 at 10:51 AM
So, the problem was: In my scene there were 2 cameras - left and right. Left camera contained a world space canvas. Moving the canvas out from the camera fixed the problem. The real reason was changing canvas' position and rotation each frame.
Your answer
![](https://koobas.hobune.stream/wayback/20220612193122im_/https://answers.unity.com/themes/thub/images/avi.jpg)