https://bugs.freedesktop.org/show_bug.cgi?id=97043

            Bug ID: 97043
           Summary: glxgears reported frame rate  doesn't match actual
           Product: Mesa
           Version: 10.5
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Demos
          Assignee: mesa-dev@lists.freedesktop.org
          Reporter: b7.10110...@gmail.com
        QA Contact: mesa-dev@lists.freedesktop.org

Running glxgears with the following command

LIBGL_ALWAYS_INDIRECT=1 glxgears

prints 60 FPS on my system, while actual picture updates are about 1-2 FPS.
This is due to command buffering I believe. The fix would be something like
this:

--- glxgears.c.orig    2014-03-22 16:59:24.000000000 +0400
+++ glxgears.c  2016-07-22 12:24:15.260412891 +0300
@@ -340,6 +340,10 @@

    draw_gears();
    glXSwapBuffers(dpy, win);
+   /* Make sure that the whole draw-swap cycle is complete before
+      measurements. Otherwise we'll have rare updates but still
+      report high frame rates with indirect rendering. */
+   glFinish();

    frames++;

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to