webOS Nation Forums > webOS apps and software > webOS development > Removing --gc_global flag in /etc/palm/browser.conf : animation speed increase
1 2 
Member: TheMarco
at: 06:03 PM 10/19/2009
So... just for the heck of it, I removed the --gc_global flag from /etc/palm/browser.conf after learning that this flag controls the 'big garbage collection' that takes 300ms every time it kicks in.

I was quite surprised to see that my app 'Screamager' runs MUCH smoother now. I'd think a lot of other apps that are pestered by 'choppiness' may now run smoother.

I have no idea yet what the side effects of removing this flag are but... so far so good. I'm gonna keep running for a while like this to see if I discover any disadvantages.
Reply
Member: P2Labs
at: 06:08 PM 10/19/2009
oooh.. I wonder what other increases can be found...

btw - what are you going to do with your rpn calc and the pixi?
Reply
Member: TheMarco
at: 06:15 PM 10/19/2009
I'm still trying to figure that out. The 80px less screen estate is a real showstopper for that app...

For Screamager I can just 'squeeze' the dots a bit which won't matter much for the experience. For the calculator however there's not much I can squeeze without ruining the user experience.

When creating this app I couldn't have dreamed that Palm would be stupid enough to go with multiple display resolutions. Horror....
Reply
Member: diomark
at: 06:28 PM 10/19/2009
Cool find; Let us know if you see any differences in memory usage..
-m
Reply
Member: TheMarco
at: 06:39 PM 10/19/2009
I'm not an expert in memory usage monitoring but using 'top' I haven't been able to spot anything alarming so far.

Note: The choppiness is not completely gone but the frequency of 'freezes' in Screamager seems to have gone down a lot and the framerate seems a bit better as well.
Reply
Member: P2Labs
at: 06:43 PM 10/19/2009
If they did the least they could have done was go for a HIGHER resolution and a LARGER screen. I'm not sure how well Pixi will be received. If it's a "poor mans" Pre that's really stretching it as a Pre is so cheap compared to those 'other' phones...

Originally Posted by TheMarco:
I'm still trying to figure that out. The 80px less screen estate is a real showstopper for that app...

For Screamager I can just 'squeeze' the dots a bit which won't matter much for the experience. For the calculator however there's not much I can squeeze without ruining the user experience.

When creating this app I couldn't have dreamed that Palm would be stupid enough to go with multiple display resolutions. Horror....

Reply
Member: TheMarco
at: 08:11 PM 10/19/2009
been running with this setting all afternoon now. I have not experienced any issues yet.
Reply
Legend: Jason Robitaille
at: 08:34 PM 10/19/2009
Here's a quick patch if anyone else wants to try this out. Very interesting find TheMarco
Attached: no-browser-gc-flag.zip (414 Bytes) 
Reply
Member: Brain_ReCall
at: 08:39 PM 10/19/2009
Originally Posted by Jason Robitaille:
Here's a quick patch if anyone else wants to try this out. Very interesting find TheMarco
You zipped a 400 byte file? Well done.


As an aside, anyone else try this?
Reply
Member: TheMarco
at: 09:01 PM 10/19/2009
I guess the worst that could go WRONG with this is the phone starting to leak memory over time. In that case it would slowly get more and more sluggish, you'd reboot, put the --gc_global back and reboot again.

I don't think there are any risks involved with trying this.

My phone is still doing absolutely fine with this.
Reply
Legend: Jason Robitaille
at: 09:02 PM 10/19/2009
Originally Posted by Brain_ReCall:
You zipped a 400 byte file? Well done.
PreCentral forums don't support direct .patch uploads
Reply
Member: K4p741nkrunch
at: 03:22 AM 10/20/2009
Hey TheMarco, great find!

I love the Screamager app and I'm definitely willing to test a way to make it smoother

*Update*

Ok tested the app and it runs great. I still get a freeze after every 3 passes of the text with the default text in there, but it beats the 1&1/2 I was getting before. Also the freezes seem to take less time before they unfreeze. They're just kind of small hiccups now.

Thanks alot, I'll leave this on!
Reply
Member: TheMarco
at: 12:23 PM 10/21/2009
Did anyone test this with other apps that have laggy performance? I'm surprised that this thread receives so little attention.

Update from my part: I've been running my phone for almost 24 hours now and I have not found any drawbacks for this tweak.
Reply
Homebrew Developer: socca1157
at: 06:35 PM 10/21/2009
The modern user wont be able to adjust this though.

This is a patch for the phone itself correct?
Reply
Member: TheMarco
at: 06:39 PM 10/21/2009
The 'modern user' ?

This is a patch like any other patch really.
Reply
Legend: Jason Robitaille
at: 06:40 PM 10/21/2009
Originally Posted by socca1157:
The modern user wont be able to adjust this though.

This is a patch for the phone itself correct?
It's a patch for a configuration file on the Pre, yea. And the average user should be able to install the patch easy. It's not too difficult: http://forums.precentral.net/canuck-...les-wosqi.html
Reply
Member: wkalam2
at: 07:12 PM 10/21/2009
This was simple to install, and I've too noticed speed increases almost everywhere. Overall it just seems way less laggy and snappier. Looking forward to seeing if it stays that way!
Reply
Member: diomark
at: 07:39 PM 10/21/2009
For what it's worth, I think this hack helps. I did notice one thing though (that I haven't been able to replicate..) - using drPodder to play a downloaded podcast, it started cutting out on me half-way through - and I also hit the too many cards error. pausing it and replying fixed the issue.. (I've *never* had that problem before in my 2+ months of using drpodder to listen to podcasts..) - so maybe it's not performing garbage collection that's needed to clear out the buffer?

Keeping this hack on and will see how things go.

-m
Reply
Homebrew Developer: socca1157
at: 07:45 PM 10/21/2009
Well I meant average Pre users, someone not on PreCentral. So this won't really help developers.
Reply
Member: TheMarco
at: 07:53 PM 10/21/2009
diomark that could very well be.

In my opinion it would be ideal if apps could trigger their OWN garbage collection when needed and have this run as some low-priority background process rather than something that pretty much locks up the phone for a third of a second.

For example in Screamager I would run it after the animation finishes scrolling, right before it starts over again. It would work fine and there would be no hiccups.
Reply
1 2 
webOS Nation Forums > webOS apps and software > webOS development > Removing --gc_global flag in /etc/palm/browser.conf : animation speed increase