FORUMS

Dr.Ketan Brings The S6 Theme Store To The Note 4

Dr.Ketan has submitted a video to the forums showing a functional port of the Galaxy S6 … more

Do You Have Insurance on Your Smartphone?

While affordable smartphones are becoming more available, the majority of high-end flagships … more

Apple Music Will Increase iTunes Match to 100,000 Songs

The battle for music streaming subscription dominance is starting to really heat … more

Xposed Framework Updated to v65

Xposed Framework is an extremely popular modification platform for Android, so much so that we included … more

[MOD] LAG FREE g2X + dalvik fix

1,558 posts
Thanks Meter: 557
 
By flak0, Senior Member on 23rd June 2012, 04:35 AM
Post Reply Subscribe to Thread Email Thread
So far for the past two months or so we have been having the wonderful devs build some pretty awesome ICS Roms. I have been lucky enough with the rest of those on the g2x threads to benefit from Owains awesome ICS builds especially the latest linaro build. Now the one issue with ICS lately is the memory leaks and the lag that slows the phone down to a crawl. The lag on my phone especially got me looking through the internet and doing research on why it could be happening. I first found out that the implementation of Zram on ICS did not work correctly with our devices. This around the time I decided to disable the Zram on the ICS build from OWAin which at first when disabled it worked a little while but then it would start to slow down again. This is when I started messing with the build.prop and started messing around with the dalvik dexopt flags. I could probably go on and on but i will cut it short here. Now I am proud to present to you the lag free -dalvik fix. I obtained the following script with permission from batoo and his thread from the ATP forums. Link: http://forum.xda-developers.com/show....php?t=1721799
. The dalvik dexopt flag change were found through research of android and the internet. Below is the procedure to get some serious butter melted from our G2x along with a smooth ride. There are two files you need: 1.modified build.prop or do manual fix 2.tune.sh script (script manager recommended)

NANDROID-BACK UP- YOU HAVE WARNED

[B]Step 1: Download lagfree.zip below
Step 2: Extract to sdcard or internal storage
Step 3: assuming your using a rooted file browser. back up your current build.prop
Step 4: place the extracted build.prop in system folder and set permissions to RW-R-R
Step 5: reboot into reocvery and wipe dalvik cache
Step 6: reboot, dalvik cache will rebuild
Step 7: use Script manager or whatever app and run the tune.sh make sure you run with SU permissions. Reboot will disable script, run at every boot or set it with script manager
Step 6: Enjoy the buttery smooth g2x

-Manual Mode --
Open build.prop and add the following
change dalvik.vm.dexopt-flags=m=y TO
dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n
right below add
dalvik.vm.execution-mode=int:jit
then change windowsmgr.max_events_per_sec = 300
comment out with #
dalvik.vm.heapgrowthlimit
then save
then goto step 5 above.

Please provide feedback nd enjoy....

now im off to get drunk...


Sent from my Transformer Prime TF201 using xda premium
Attached Files
File Type: zip lagfree.zip - [Click for QR Code] (2.1 KB, 3238 views)
Last edited by flak0; 23rd June 2012 at 04:48 AM.
The Following 35 Users Say Thank You to flak0 For This Useful Post: [ View ]
 
 
23rd June 2012, 04:55 AM |#2  
candleworth7808's Avatar
Senior Member
Flag Ft. Lauderdale
Thanks Meter: 197
 
More
Butter leaking G2X and popcorn=movie night

Sent from my LG-P999 using xda premium
23rd June 2012, 05:07 AM |#3  
flak0's Avatar
OP Senior Member
Flag Pembroke Pines , FL
Thanks Meter: 557
 
Donate to Me
More
Quote:
Originally Posted by candleworth7808

Butter leaking G2X and popcorn=movie night

Sent from my LG-P999 using xda premium

Damn skippy lol

Sent from my LG-P999 using xda premium
23rd June 2012, 05:38 AM |#4  
huy_gm's Avatar
Senior Member
Flag Sai Gon
Thanks Meter: 80
 
More
i will definitely try this.
23rd June 2012, 05:46 AM |#5  
jim.k.yee's Avatar
Member
Flag New York
Thanks Meter: 12
 
Donate to Me
More
This might convince me to go back to the world of ICS
The Following User Says Thank You to jim.k.yee For This Useful Post: [ View ]
23rd June 2012, 06:17 AM |#6  
huy_gm's Avatar
Senior Member
Flag Sai Gon
Thanks Meter: 80
 
More
how can i test for how much it is better from before, i mean is there a specific way to see butter leaking, like scrolling in specific area or something

sr for my bad English.
23rd June 2012, 06:19 AM |#7  
flak0's Avatar
OP Senior Member
Flag Pembroke Pines , FL
Thanks Meter: 557
 
Donate to Me
More
Quote:
Originally Posted by huy_gm

how can i test for how much it is better from before, i mean is there a specific way to see butter leaking, like scrolling in specific area or something

sr for my bad English.

Its just FAA St , oops I'm tipsy

Sent from my LG-P999 using xda premium
23rd June 2012, 06:31 AM |#8  
flak0's Avatar
OP Senior Member
Flag Pembroke Pines , FL
Thanks Meter: 557
 
Donate to Me
More
Not related to the thread but I'm the OP and I'm getting tipsayyy lol
Click image for larger version

Name:	uploadfromtaptalk1340429481112.jpg
Views:	4009
Size:	96.9 KB
ID:	1149365
Bud light Platinum + Hangover 2

Sent from my LG-P999 using xda premium
The Following User Says Thank You to flak0 For This Useful Post: [ View ]
23rd June 2012, 07:11 AM |#9  
noahk423's Avatar
Senior Member
Thanks Meter: 193
 
More
Quote:
Originally Posted by flak0

Not related to the thread but I'm the OP and I'm getting tipsayyy lol
Attachment 1149365
Bud light Platinum + Hangover 2

Sent from my LG-P999 using xda premium

Heck yeah! Have fun mane! Hangover 2 is always the best! And thanks for this script dude, its running as smooth as ever.

Sent from my LG-P999 using XDA
23rd June 2012, 07:48 AM |#10  
flak0's Avatar
OP Senior Member
Flag Pembroke Pines , FL
Thanks Meter: 557
 
Donate to Me
More
Quote:
Originally Posted by noahk423

Heck yeah! Have fun mane! Hangover 2 is always the best! And thanks for this script dude, its running as smooth as ever.

Sent from my LG-P999 using XDA

ur welcome. maybe just maybe i might start developing again.... i got the i7 quad core overclocked at my old house.. hmmm

Sent from my Transformer Prime TF201 using xda premium
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes