TheTrope Posted September 15, 2016 Share Posted September 15, 2016 Hi, I'm starting a VR project (Cardboard), and i'm trying different things to choose the bests options Babylon can offer, When i compare VRDeviceOrientation Camera and WebVR camera (barrel activated), there is a huge performance gap. 15 fps with the first, and 60 fps with the second one. It look like the barrel option lower performances a lot on VRDeviceOrientationFreeCamera Even if VRDeviceOrientation Camera has a better quality, is there a way to get better performances? I tried things like engine.setHardwareScalingLevel, but i can't get a better performance/quality ratio than WebVR Camera. Here an example i found on this forum : http://plyojump.com/projects/webvr-babylon-orientation-webvr/ Here is one of my tests: http://ns3301844.ip-5-135-158.eu/ Thanks ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 16, 2016 Share Posted September 16, 2016 Can you reproduce this difference in the Playground? It should not be so different (45 fps is A LOT) Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 Just a quick answer - VRDeviceOrientation has the option to enable a shader for distortion compensation. It is a rather heavy shader. On mobiles it will drop your FPS, yes. I am not sure in what resolution and with what device you are testing (Device orientation is mainly for mobiles, whereas WebVR for Desktops with VR devices connected). So if you are checking that on a desktop with a not-so-strong GPU but a descent resolution, this is rather expected (thou I also think a 45 FPS difference is rather large). Ty disabling the camera distortion (the boolean in the orientation camera constructor) and see if this is what actually influencing your scene. Quote Link to comment Share on other sites More sharing options...
TheTrope Posted September 21, 2016 Author Share Posted September 21, 2016 Hey thanks! I'm using it on mobile With no barrel ~60fps : http://www.babylonjs-playground.com/#XQY4I#10 With barrel ~15-20fps: http://www.babylonjs-playground.com/#XQY4I#11 The gap is huge ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.