Skip to main content
Participant
February 20, 2015

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.
    This topic has been closed for replies.

    1 reply

    Inspiring
    February 23, 2015
    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.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV