Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
phil_lira's avatar
phil_lira
Honored Guest
11 years ago

Is there a way to force double buffering?

I'm trying to debug my VR game with the Mali Graphics Debugger (MGD). Unfotunately MGD only looks for eglSwapBuffers as a synchronization primitive and since the VR Lib only uses the front buffer I can't capture a frame.

I already contacted the ARM forums but until the provide me a fix I'd like to know if there's something on the Unity Integration end I could do like forcing double buffering. Since I'm only interested in debugging in this case I'm not worried about the latency.

I'm using Mobile SDK 0.4.2.

1 Reply

Replies have been turned off for this discussion
  • There is a local preference ("frontbuffer") that you can disable. For example:
    adb shell "echo frontbuffer 0 > /sdcard/.oculusprefs"

    However, for this to be checked, you will need to modify and compile the plugin.

    You'll have to find this line in VrApi/LocalPreferences.cpp and change:
    #define ENABLE_LOCAL_PREFS

    Hope that helps.