[Mesa-dev] [Bug 97043] glxgears reported frame rate doesn't match actual

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 22 09:36:18 UTC 2016


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 at lists.freedesktop.org
          Reporter: b7.10110111 at gmail.com
        QA Contact: mesa-dev at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160722/29df3219/attachment-0001.html>


More information about the mesa-dev mailing list