Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a6b160a authored by Mathias Agopian's avatar Mathias Agopian
Browse files

when there is a choice between UPDATE_ON_DEMAND and SWAP_BUFFER optimizations,...

when there is a choice between UPDATE_ON_DEMAND and SWAP_BUFFER optimizations, choose UPDATE_ON_DEMAND which is often more efficient.
parent ecfa7ccd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -211,8 +211,13 @@ void DisplayHardware::init(uint32_t dpy)
    if (strstr(egl_extensions, "EGL_ANDROID_swap_rectangle")) {
        mFlags |= SWAP_RECTANGLE;
    }
    // when we have the choice between UPDATE_ON_DEMAND and SWAP_RECTANGLE
    // choose UPDATE_ON_DEMAND, which is more efficient
    if (mFlags & UPDATE_ON_DEMAND)
        mFlags &= ~SWAP_RECTANGLE;
#endif
    

    mDpiX = mNativeWindow->xdpi;
    mDpiX = mNativeWindow->ydpi;
    mRefreshRate = fbDev->fps;