Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
blackhand1001
Old
(Last edited by blackhand1001; 15th January 2013 at 05:56 PM.)
#1  
blackhand1001's Avatar
Senior Member - OP
Thanks Meter 428
Posts: 897
Join Date: Sep 2011

 
DONATE TO ME
Default [FIX] Lag fix for cm10 based roms (cm10, paranoid android, jellybro) (4.1 only)

I have a fix for the lagginess in builds from the past week and a half or so. The culprit is the surface flinger library. It is the android compositing system and some changes recently made to it are responsible for the significant lag in recent builds. Most noticeable spot is if you hit the home button if you have the notification drawer down. It becomes extremely laggy without this patch. Scrolling is also less smooth whenever multiple things on the screen are being drawn. This fixes all those issues.

Just flash this in cwm or whatever recovery you choose. Should work on all cm10 builds and cm10 based roms like paranoid android.

http://www.mediafire.com/?dbi25egli253q1b
Current: Galaxy Nexus LTE - CM10.1 Nightly (jellybro)
Extra (previous): Droid Incredible AMOLED - CM7.2
Father: HTC Rezound - Stock Rooted
The Following 71 Users Say Thank You to blackhand1001 For This Useful Post: [ Click to Expand ]
 
thepatman
Old
#2  
thepatman's Avatar
Member
Thanks Meter 11
Posts: 93
Join Date: Jun 2011
Location: San Antonio
Quote:
Originally Posted by blackhand1001 View Post
I have a fix for the lagginess in builds from the past week and a half or so. The culprit is the surface flinger library. It is the android compositing system and some changes recently made to it are responsible for the significant lag in recent builds. Most noticeable spot is if you hit the home button if you have the notification drawer down. It becomes extremely laggy without this patch. Scrolling is also less smooth whenever multiple things on the screen are being drawn. This fixes all those issues.

Just flash this in cwm or whatever recovery you choose. Should work on all cm10 builds and cm10 based roms like paranoid android.

http://www.mediafire.com/?dbi25egli253q1b
HELL YEAH! I can see the improvement all over - thank you for this! I was "putting up with it" (read: thinking I needed, but too lazy to do a full wipe) and BAM! Fixed. Thanks!
===============================
Galaxy Nexus - Paranoid Android w/Franco
Nexus 7 - Paranoid Android w/Trinity

===============================
 
drzplaya1121
Old
#3  
Senior Member
Thanks Meter 19
Posts: 260
Join Date: Aug 2009
Location: Bronx, NY
Does it work on CNA?

Sent from my Nexus 7 using Tapatalk 2
Galaxy Nexus
Jelly Bean Stock Rooted
 
thegtfusion
Old
#4  
thegtfusion's Avatar
Senior Member
Thanks Meter 1794
Posts: 3,580
Join Date: Jan 2011
Location: Paramaribo
Quote:
Originally Posted by drzplaya1121 View Post
Does it work on CNA?

Sent from my Nexus 7 using Tapatalk 2
Cna doesnt have the lag.

Sent from my Galaxy Nexus using Tapatalk 2
Samsung Galaxy Nexus
ROM: Purity 5.4.2
Kernel: Franco r738-lippol
 
unforgivenmercy
Old
#5  
unforgivenmercy's Avatar
Senior Member
Thanks Meter 492
Posts: 1,913
Join Date: Jul 2011
Location: Ann Arbor
Quote:
Originally Posted by thegtfusion View Post
Cna doesnt have the lag.

Sent from my Galaxy Nexus using Tapatalk 2
Would it work for the Sourcery rom?

Sent from my Galaxy Nexus using Tapatalk 2
 
blackhand1001
Old
#6  
blackhand1001's Avatar
Senior Member - OP
Thanks Meter 428
Posts: 897
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by thegtfusion View Post
Cna doesnt have the lag.

Sent from my Galaxy Nexus using Tapatalk 2
Yup this is only for cm10 based ROMs. I think aokp may have ruled the bad library as well from cm so you can try it on that as well.

Sent from my Nexus 7 using xda premium
Current: Galaxy Nexus LTE - CM10.1 Nightly (jellybro)
Extra (previous): Droid Incredible AMOLED - CM7.2
Father: HTC Rezound - Stock Rooted
 
bgdxv
Old
#7  
bgdxv's Avatar
Senior Member
Thanks Meter 48
Posts: 363
Join Date: Mar 2011
Location: Bucharest
Can someone please send this as a commit to CM ?
 
nfl46
Old
#8  
Senior Member
Thanks Meter 16
Posts: 189
Join Date: Feb 2008
Thanks. It works!

Sent from my Galaxy Nexus using xda premium
 
blackhand1001
Old
#9  
blackhand1001's Avatar
Senior Member - OP
Thanks Meter 428
Posts: 897
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by bgdxv View Post
Can someone please send this as a commit to CM ?
I would but I still haven't found the exact change on gerrit that caused the issue. My patch just uses the library from an older build. I think the only change between the two libraries is the one that causes the lag. This is really my first major fix in have found if someone wants to help me track down the exact spot in the source code that needs to be reverted I would really appreciate it. Still kind of new at this.

Sent from my Nexus 7 using xda premium
Current: Galaxy Nexus LTE - CM10.1 Nightly (jellybro)
Extra (previous): Droid Incredible AMOLED - CM7.2
Father: HTC Rezound - Stock Rooted
 
unforgivenmercy
Old
#10  
unforgivenmercy's Avatar
Senior Member
Thanks Meter 492
Posts: 1,913
Join Date: Jul 2011
Location: Ann Arbor
Quote:
Originally Posted by unforgivenmercy View Post
Would it work for the Sourcery rom?

Sent from my Galaxy Nexus using Tapatalk 2
I don't know if sourcery is aokp or cm based.

Sent from my Galaxy Nexus using Tapatalk 2

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...