Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiz Fusion is bugging me...  (Read 5323 times)

0 Members and 1 Guest are viewing this topic.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Compiz Fusion is bugging me...
« on: March 01, 2009, 03:43:33 pm »
Compiz Fusion in Linux adds some effects to my desktop using OpenGL.... And as SFML uses OpenGL as a backend, it conflicts with each others. When I open a window while hacing Compiz enabled, the window get screwed over and I can't even see the window border.

I'm wondering if anyone knows a work around for this?
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiz Fusion is bugging me...
« Reply #1 on: March 01, 2009, 05:35:27 pm »
The usual workaround is to disable Compiz :D

Do other OpenGL programs work fine?
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Compiz Fusion is bugging me...
« Reply #2 on: March 01, 2009, 05:51:24 pm »
Depends what program it is. Cairo-dock works perfectly. Though the SDL/OpenGL game Toribash workes somewhat. You can see the border and window easily. Though there are some visual conflicts in the rendering. Boxes appear and disappear showing the content behind.

Though a workaround is to have the window in Fullscreen, that seemed to work with no visual bugs. Well it will be up to the end user to disable Compiz I guess. Though I don't understand why OpenGL contexts conflicts so much with each other?
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

JSLemming

  • Newbie
  • *
  • Posts: 7
    • View Profile
Compiz Fusion is bugging me...
« Reply #3 on: March 08, 2009, 05:39:08 am »
I was going to post about this too. I'm running Ubuntu 8.10 with compiz fusion. SFML goes full retard when used with compiz. SDL/OpenGL handles things better although I don't know why. Here are some screen shots of the weirdness. I've compiled the samples using SFML 1.5 btw.

Here is the pong sample with compiz disabled.

And now with compiz enabled (and at the same instant in game time as above).


And for the OpenGL sample with the spinning crate... this one behaves randomly. Run the program once and it works just fine (except for lack of window). Run it another time and perhaps the screen doesn't get cleared:

Run it again and maybe the background doesn't even render.

My directory browser was bleeding through that one.

Any ideas on this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiz Fusion is bugging me...
« Reply #4 on: March 08, 2009, 10:35:58 am »
Does it make any difference if you call PreserveOpenGLStates(true)?
Laurent Gomila - SFML developer

Max-P

  • Newbie
  • *
  • Posts: 9
    • View Profile
Compiz Fusion is bugging me...
« Reply #5 on: March 08, 2009, 04:28:38 pm »
It will sound offtopic, but are you using an ATI card? I had the same problems on my old laptop, probably because of the driver because on my new computer, it works without any problem. Run glxgears when compiz is enabled and see if you have the same problem I had.

Sorry, but that's all I know about that. I hope I helped at least a bit.

JSLemming

  • Newbie
  • *
  • Posts: 7
    • View Profile
Compiz Fusion is bugging me...
« Reply #6 on: March 08, 2009, 06:29:00 pm »
Quote
It will sound offtopic, but are you using an ATI card?
No, I have an integrated card, Intel Graphics Media Accelerator 950. glxgears runs just fine at about 700 FPS.

Quote
Does it make any difference if you call PreserveOpenGLStates(true)?
No.

JSLemming

  • Newbie
  • *
  • Posts: 7
    • View Profile
Compiz Fusion is bugging me...
« Reply #7 on: April 03, 2009, 11:08:45 pm »
Do you think this issue can be resolved? I'm dieing to convert my SDL/OpenGL app over to SFML but I'm afraid a lot of people use composite window managers.

BTW, the window still works, it's just invisible. Like if you position your mouse where the Maximize Window button is and click it still works. And the graphics part seems to be just some corruption of where image data is stored in memory...

If I can help in any way with the problem, please let me know.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Compiz Fusion is bugging me...
« Reply #8 on: April 06, 2009, 10:52:37 pm »
I have an integrated Intel too. Don't know the exact model though. It could be that. Intel is known to NOT be good with OpenGL.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

JSLemming

  • Newbie
  • *
  • Posts: 7
    • View Profile
Compiz Fusion is bugging me...
« Reply #9 on: April 07, 2009, 03:23:35 am »
True, but SDL and GLUT manage to pull it off.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Compiz Fusion is bugging me...
« Reply #10 on: April 07, 2009, 12:48:35 pm »
Thats true.. maybe because.... they're old? Old ppl die hard.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

JSLemming

  • Newbie
  • *
  • Posts: 7
    • View Profile
Compiz Fusion is bugging me...
« Reply #11 on: April 09, 2009, 12:23:43 am »
Old people are wise and tell cool war stories. They die softly in their sleep.

Sooo maybe Laurent can chime in with a thought or two.  :o

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiz Fusion is bugging me...
« Reply #12 on: April 09, 2009, 08:35:10 am »
Sure ;)
Laurent Gomila - SFML developer

 

anything