View previous topic :: View next topic |
Author |
Message |
dromero n00b


Joined: 24 Mar 2011 Posts: 7 Location: México
|
Posted: Thu Mar 24, 2011 10:43 pm Post subject: Boosting compiz |
|
|
I read this forum post: http://ubuntuforums.org/showthread.php?t=1680985
It basically gives yet another approach to solve what for me is a very fundamental issue: lags in compiz animations!
I have tried before with a startup script in gnome, but it seems not very elegant for my taste.
So, I decided to give it a try and write a little bit more elegant version, here it is:
Code: |
#!/sbin/runscript
description="Renice compiz in order to reduce lags"
start(){
einfo "Starting Compiz booster"
local compiz=$(pgrep compiz)
until [ "$compiz" != "" ];
do
compiz=$(pgrep compiz)
sleep 10
done
renice -10 -p $compiz
}
end(){
einfo "Stopping Compiz booster"
local compiz=$(pgrep compiz)
until [ "$compiz" != "" ];
do
compiz=$(pgrep compiz)
sleep 10
done
renice 0 -p $compiz
}
|
However, I am not a gentoo or linux guru, so I am aware that maybe there is a better way of doing this. Particularly with the end() section, I didn't have a clue of what to do. Any comments would be greatly appreciated. _________________ Gentoo: the fastest underwater swimming penguins, reaching speeds of 36 km/h.
Gentoo are built for very harsh cold climates.
--Wikipedia |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Mar 25, 2011 1:43 am Post subject: |
|
|
Run compiz via `schedtool -I`, and use a BFS-patched kernel. Messing with nice levels is the wrong way to fix it. |
|
Back to top |
|
 |
dromero n00b


Joined: 24 Mar 2011 Posts: 7 Location: México
|
Posted: Sun Mar 27, 2011 6:22 am Post subject: |
|
|
Thanks, that is good advice.
However, I have a question: as I have an i7 laptop, I am supposed to use NUMA support at kernel to obtain better performance? And if it is so, shouldn't that interfere with the BFS patch?
Thanks! _________________ Gentoo: the fastest underwater swimming penguins, reaching speeds of 36 km/h.
Gentoo are built for very harsh cold climates.
--Wikipedia |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|