Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boosting compiz
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dromero
n00b
n00b


Joined: 24 Mar 2011
Posts: 7
Location: México

PostPosted: Thu Mar 24, 2011 10:43 pm    Post subject: Boosting compiz Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Mar 25, 2011 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message
dromero
n00b
n00b


Joined: 24 Mar 2011
Posts: 7
Location: México

PostPosted: Sun Mar 27, 2011 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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