Hi all,
We are doing some performance profiling on wayland using es2gears
and found a issue that mesa-deoms/src/egl/opengles2/es2gears_wayland
(running drm backend) on platform-a (sandybridge, fedora 17 with
kernel version 3.5) has 30fps but es2gears_x11 60fps, but on
platform-b (sandybridge, Ubuntu 12.04 with kernel version 3.2) the
fps is 60fps both for es2gears_wayland and es2gears_x11.
I debugged on platform-a and found that drmModePageFlip in
weston/src/compositor-drm.c has calling rate of 30/s. If not set the
EGL_DEPTH_SIZE attribute on EGLContext in
mesa-deoms/src/egl/eglut/eglut.c, the fps of es2gears_wayland gets
60 fps.
we also installed ubuntu 12.04(with 3.2 kernel) on platform-a, and
build all the packages needed, the es2gears_wayland got 60fps.
So, my question is why wayland performance halfed when running
es2gears_wayland at fedora17 (kernel 3.5)?