← Back to team overview

compiz team mailing list archive

[Bug 1055154] [NEW] compiz "sync to vblank" causes high cpu and poor performance for OpenGL applications

 

Public bug reported:

When using the compiz window manager (version 0.9.7.8) with the "sync to
vblank" option enabled in the OpenGL plugin section of CCSM, OpenGL
applications will cause the CPU usage of Xorg and compiz to be very
high, and the application's frame rate will be stuttering.

I have pinpointed this issue to a line in
compiz/plugins/opengl/src/screen.cpp which I believe is calling
glXSwapIntervalSGI(0) every frame unecessarily, leading to poor
performance.

I have attached a patch which comments the line in question out, and
fixes this issue.

My system is running Ubuntu 12.04 with an Nvidia 560TI graphics card,
I've tried several nvidia proprietary drivers (295.40, 295.33, 304.43)
which all have this issue, and which the attached compiz patch fixes.

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: compiz opengl

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1055154

Title:
  compiz "sync to vblank" causes high cpu and poor performance for
  OpenGL applications

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1055154/+subscriptions


Follow ups

References