Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-09 Thread Sergio Costas
I made several changes to GAMEd, so those that downloaded it, please,
update your GIT repository and compile it again to ensure that you have
all the changes.

Thanks.

El 08/11/12 22:47, Sergey Shnatsel Davidoff escribió:
 FYI, there's also AutoNiceD that does roughly the same thing, but it's a
 little more advanced. Should work too.

 Does GAMEd require root permissions to renice things?

 2012/11/9 Sergio Costas rasters...@gmail.com

  Hi all:

 I created a little daemon to set priorities. It's called GAMEd.

 You can download and install it just opening a terminal and typing:

 git clone 
 https:/**/github.**com/rastersoft/**gamed.githttps://github.com/rastersoft/gamed.git
 cd gamed
 make
 sudo make install

 Now, to set the priority, just type

 renice_gamed -20

 This will set the priority of both Xorg and Gala to -20

 Now, each time you enter your session, GAMEd will automatically set the
 priority to that value. If you change it again, the new value will be
 remembered between sessions.

 You can also edit /etc/gamed.conf and add more executables to the list
 (like unity or gnome-shell), allowing to use it with other desktops.

 Of course, this is just a temporary hack, until ulatencyd gets fixed.

 One last note: it seems that the effect in games needs some seconds before
 working, so after setting the priority, wait some seconds before launching
 the game.

 Enjoy!


 El 05/11/12 00:51, Dane Henson escribió:

 I have the same issue. I attempted to install Limbo (yes, it's in a wine
 wrapper) on my MacBook with Intel graphics. The fps is terrible, the
 keystrokes are laggy. Not sure what the issue is, just thought I'd mention
 that it affected me too.
 On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
 ser...@elementaryos.org wrote:


  Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



 --
 Nos leemos
   RASTER(Linux user #228804)ras...@rastersoft.com
   http://www.rastersoft.com





-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-08 Thread Sergio Costas
Hi all:

I created a little daemon to set priorities. It's called GAMEd.

You can download and install it just opening a terminal and typing:

git clone https://github.com/rastersoft/gamed.git
https://github.com/rastersoft/gamed.git
cd gamed
make
sudo make install

Now, to set the priority, just type

renice_gamed -20

This will set the priority of both Xorg and Gala to -20

Now, each time you enter your session, GAMEd will automatically set the
priority to that value. If you change it again, the new value will be
remembered between sessions.

You can also edit /etc/gamed.conf and add more executables to the list
(like unity or gnome-shell), allowing to use it with other desktops.

Of course, this is just a temporary hack, until ulatencyd gets fixed.

One last note: it seems that the effect in games needs some seconds
before working, so after setting the priority, wait some seconds before
launching the game.

Enjoy!



El 05/11/12 00:51, Dane Henson escribió:
 I have the same issue. I attempted to install Limbo (yes, it's in a wine
 wrapper) on my MacBook with Intel graphics. The fps is terrible, the
 keystrokes are laggy. Not sure what the issue is, just thought I'd mention
 that it affected me too.
 On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
 ser...@elementaryos.org wrote:

 Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com

-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-08 Thread Sergey Shnatsel Davidoff
FYI, there's also AutoNiceD that does roughly the same thing, but it's a
little more advanced. Should work too.

Does GAMEd require root permissions to renice things?

2012/11/9 Sergio Costas rasters...@gmail.com

  Hi all:

 I created a little daemon to set priorities. It's called GAMEd.

 You can download and install it just opening a terminal and typing:

 git clone 
 https:/**/github.**com/rastersoft/**gamed.githttps://github.com/rastersoft/gamed.git
 cd gamed
 make
 sudo make install

 Now, to set the priority, just type

 renice_gamed -20

 This will set the priority of both Xorg and Gala to -20

 Now, each time you enter your session, GAMEd will automatically set the
 priority to that value. If you change it again, the new value will be
 remembered between sessions.

 You can also edit /etc/gamed.conf and add more executables to the list
 (like unity or gnome-shell), allowing to use it with other desktops.

 Of course, this is just a temporary hack, until ulatencyd gets fixed.

 One last note: it seems that the effect in games needs some seconds before
 working, so after setting the priority, wait some seconds before launching
 the game.

 Enjoy!


 El 05/11/12 00:51, Dane Henson escribió:

 I have the same issue. I attempted to install Limbo (yes, it's in a wine
 wrapper) on my MacBook with Intel graphics. The fps is terrible, the
 keystrokes are laggy. Not sure what the issue is, just thought I'd mention
 that it affected me too.
 On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
 ser...@elementaryos.org wrote:


  Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



 --
 Nos leemos
RASTER(Linux user #228804)ras...@rastersoft.com
   http://www.rastersoft.com




-- 
Sergey Shnatsel Davidoff
OS architect @ elementary
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-08 Thread Sergio Costas
BTW: What do you know about this?

DO NOT SET THIS TO -20, OR YOU WILL SEVERELY AND PERMANENTLY
   DAMAGE YOUR SYSTEM! Setting the priority too high causes your
   program to interfere with very important system tasks (like
   the swapper or the RAID daemons). Messing with the RAID
   daemons is a *VERY* bad idea!

If this is true, I should add a protection in GAMEd...

El 08/11/12 22:47, Sergey Shnatsel Davidoff escribió:
 FYI, there's also AutoNiceD that does roughly the same thing, but it's a
 little more advanced. Should work too.

 Does GAMEd require root permissions to renice things?

 2012/11/9 Sergio Costas rasters...@gmail.com

  Hi all:

 I created a little daemon to set priorities. It's called GAMEd.

 You can download and install it just opening a terminal and typing:

 git clone 
 https:/**/github.**com/rastersoft/**gamed.githttps://github.com/rastersoft/gamed.git
 cd gamed
 make
 sudo make install

 Now, to set the priority, just type

 renice_gamed -20

 This will set the priority of both Xorg and Gala to -20

 Now, each time you enter your session, GAMEd will automatically set the
 priority to that value. If you change it again, the new value will be
 remembered between sessions.

 You can also edit /etc/gamed.conf and add more executables to the list
 (like unity or gnome-shell), allowing to use it with other desktops.

 Of course, this is just a temporary hack, until ulatencyd gets fixed.

 One last note: it seems that the effect in games needs some seconds before
 working, so after setting the priority, wait some seconds before launching
 the game.

 Enjoy!


 El 05/11/12 00:51, Dane Henson escribió:

 I have the same issue. I attempted to install Limbo (yes, it's in a wine
 wrapper) on my MacBook with Intel graphics. The fps is terrible, the
 keystrokes are laggy. Not sure what the issue is, just thought I'd mention
 that it affected me too.
 On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
 ser...@elementaryos.org wrote:


  Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



 --
 Nos leemos
   RASTER(Linux user #228804)ras...@rastersoft.com
   http://www.rastersoft.com





-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-08 Thread Sergio Costas
I've been checking AutoNiceD, and it says that it does exactly the
opposite: put lower priority to several process.

Also, AutoNiceD keeps running periodically, while GAMEd runs only when
launching the window manager, or when manually setting the priority. The
rest of the time it is sleeping.

El 08/11/12 22:47, Sergey Shnatsel Davidoff escribió:
 FYI, there's also AutoNiceD that does roughly the same thing, but it's a
 little more advanced. Should work too.

 Does GAMEd require root permissions to renice things?

 2012/11/9 Sergio Costas rasters...@gmail.com

  Hi all:

 I created a little daemon to set priorities. It's called GAMEd.

 You can download and install it just opening a terminal and typing:

 git clone 
 https:/**/github.**com/rastersoft/**gamed.githttps://github.com/rastersoft/gamed.git
 cd gamed
 make
 sudo make install

 Now, to set the priority, just type

 renice_gamed -20

 This will set the priority of both Xorg and Gala to -20

 Now, each time you enter your session, GAMEd will automatically set the
 priority to that value. If you change it again, the new value will be
 remembered between sessions.

 You can also edit /etc/gamed.conf and add more executables to the list
 (like unity or gnome-shell), allowing to use it with other desktops.

 Of course, this is just a temporary hack, until ulatencyd gets fixed.

 One last note: it seems that the effect in games needs some seconds before
 working, so after setting the priority, wait some seconds before launching
 the game.

 Enjoy!


 El 05/11/12 00:51, Dane Henson escribió:

 I have the same issue. I attempted to install Limbo (yes, it's in a wine
 wrapper) on my MacBook with Intel graphics. The fps is terrible, the
 keystrokes are laggy. Not sure what the issue is, just thought I'd mention
 that it affected me too.
 On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
 ser...@elementaryos.org wrote:


  Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



 --
 Nos leemos
   RASTER(Linux user #228804)ras...@rastersoft.com
   http://www.rastersoft.com





-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-05 Thread Sergey Shnatsel Davidoff
Great! I hope https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1034099
gets fixed till Luna beta2 so we'll be able to integrate ulatencyd by
default that will assign these priorities automatically. Ubuntu
doesn't seem to be interested in fixing that; perhaps we should
catalyze the activity by bisecting the change that caused this bug.

2012/11/5 Sergio Costas rasters...@gmail.com:
 Hi again:

 Sorry, I wanted to say about 5-7 fps, not 20.

 But I found the solution! I gave maximum priority (-20) to both X and
 Gala, and now it works like a charm. If I only give priority to Gala
 there's no change; if only give priority to X it has a little
 improvement; but giving to both makes the game run smoothly.

 El 05/11/12 00:40, Sergey Shnatsel Davidoff escribió:
 Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.



 --
 Nos leemos
  RASTER(Linux user #228804)
 ras...@rastersoft.com  http://www.rastersoft.com


 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp



-- 
Sergey Shnatsel Davidoff
OS architect @ elementary

-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-04 Thread Aditya Vaidya
If I remember correctly, Limbo runs inside of WINE (it's bundled with it, I
think). So, I think the problem may very well lie with WINE, but I'm not
sure.


Sincerely,
kroq-gar78


On Sun, Nov 4, 2012 at 1:56 PM, Sergio Costas rasters...@gmail.com wrote:

 Hi all:

 I installed Limbo (an OpenGL game), and found that the animation is
 extremely bad: there's a big delay between keystrokes and the FPS are
 quite low.

 I changed to gnome classic desktop (without desktop effects), and it
 worked like a charm.

 I presume that this is due to the well-known composite desktop problem,
 where the window manager has to re-render each frame.

 The question is: is there a way for fixing this in Gala, like KDE and
 Gnome people did (AFAIK, by reparenting the full screen windows in order
 to make them not-composite managed)?

 Thanks.

 --
 Nos leemos
  RASTER(Linux user #228804)
 ras...@rastersoft.com  http://www.rastersoft.com


 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp

-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-04 Thread Dane Henson
I have the same issue. I attempted to install Limbo (yes, it's in a wine
wrapper) on my MacBook with Intel graphics. The fps is terrible, the
keystrokes are laggy. Not sure what the issue is, just thought I'd mention
that it affected me too.
On Nov 4, 2012 5:40 PM, Sergey Shnatsel Davidoff 
ser...@elementaryos.org wrote:

 Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.

 --
 Sergey Shnatsel Davidoff

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp

-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-04 Thread Sergio Costas
Hi Sergey:

I'm not using the Catalyst driver (but yes, it's an AMD/ATI graphic
card). With the Catalyst there are, in addition, glitches in the picture
(like when a celluloid film jumps between frames). I'm using the free
Radeon drivers. The problems whith it are two:

  * slow FPS: the animations are jerky, I think about 20 fps or so. I
suspect this is due to the XWindows protocol, that produces a very big
delay when sending the XDamage signal.

  * big delay between a keypress and the reaction of the sprite: again,
I blame to the need of receiving the XDamage signal in the window
manager and render the whole frame from the application buffer into the
screen.

El 05/11/12 00:40, Sergey Shnatsel Davidoff escribió:
 Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.



-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] OpenGL performance with Gala

2012-11-04 Thread Sergio Costas
Hi again:

Sorry, I wanted to say about 5-7 fps, not 20.

But I found the solution! I gave maximum priority (-20) to both X and
Gala, and now it works like a charm. If I only give priority to Gala
there's no change; if only give priority to X it has a little
improvement; but giving to both makes the game run smoothly.

El 05/11/12 00:40, Sergey Shnatsel Davidoff escribió:
 Sergio, what GPU and driver do you have?

 If it's an AMD GPU with the proprietary driver, this is likely caused
 by the multitude of vsync bugs in catalyst, where vsync either doesn't
 work or causes a slideshow-like performance, e.g. on moving windows in
 Gala.

 According to http://limbogame.org/news/, Limbo runs via a WINE
 wrapper, and that causes even more issues with Catalyst, namely...
 vsync again. Unreal and Skyrim in WINE have terrible tearing under
 Unity2D (metacity) on my HD6770, for example.



-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp