webOS Nation Forums >  webOS apps and software >  webOS development > Removing --gc_global flag in /etc/palm/browser.conf : animation speed increase
Removing --gc_global flag in /etc/palm/browser.conf : animation speed increase

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/19/2009, 05:03 PM   #1 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default Removing --gc_global flag in /etc/palm/browser.conf : animation speed increase

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.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/19/2009, 05:08 PM   #2 (permalink)
Member
 
P2Labs's Avatar
 
Join Date: Jul 2009
Location: New York City
Posts: 194
Likes Received: 1
Thanks: 5
Thanked 29 Times in 14 Posts
Default

oooh.. I wonder what other increases can be found...

btw - what are you going to do with your rpn calc and the pixi?
__________________
P2Labs :: finger on the pulse...
P2Labs.com | Twitter | P2Snippets | P2Wardrobe
P2Labs is offline   Reply With Quote
Old 10/19/2009, 05:15 PM   #3 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

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....
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/19/2009, 05:28 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 770
Likes Received: 0
Thanks: 37
Thanked 276 Times in 83 Posts
Default

Cool find; Let us know if you see any differences in memory usage..
-m
diomark is offline   Reply With Quote
Old 10/19/2009, 05:39 PM   #5 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

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.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/19/2009, 05:43 PM   #6 (permalink)
Member
 
P2Labs's Avatar
 
Join Date: Jul 2009
Location: New York City
Posts: 194
Likes Received: 1
Thanks: 5
Thanked 29 Times in 14 Posts
Default

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...

Quote:
Originally Posted by TheMarco View Post
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....
__________________
P2Labs :: finger on the pulse...
P2Labs.com | Twitter | P2Snippets | P2Wardrobe
P2Labs is offline   Reply With Quote
Old 10/19/2009, 07:11 PM   #7 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

been running with this setting all afternoon now. I have not experienced any issues yet.
TheMarco is offline   Reply With Quote
Old 10/19/2009, 07:34 PM   #8 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Here's a quick patch if anyone else wants to try this out. Very interesting find TheMarco
Attached Files
File Type: zip no-browser-gc-flag.zip (414 Bytes, 71 views) Email Attachment
Jason Robitaille is offline   Reply With Quote
Old 10/19/2009, 07:39 PM   #9 (permalink)
Member
 
Brain_ReCall's Avatar
 
Join Date: Jun 2009
Posts: 395
Likes Received: 7
Thanks: 123
Thanked 116 Times in 68 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
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?
__________________
Quote:
Originally Posted by Brain_ReCall
I'm an Embedded Software Engineer. My idea of a Good User Interface is printf().
Brain_ReCall is offline   Reply With Quote
Old 10/19/2009, 08:01 PM   #10 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

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.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/19/2009, 08:02 PM   #11 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by Brain_ReCall View Post
You zipped a 400 byte file? Well done.
PreCentral forums don't support direct .patch uploads
Jason Robitaille is offline   Reply With Quote
Old 10/20/2009, 02:22 AM   #12 (permalink)
Member
 
K4p741nkrunch's Avatar
 
Join Date: Aug 2009
Posts: 187
Likes Received: 0
Thanks: 21
Thanked 48 Times in 32 Posts
Default

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!
K4p741nkrunch is offline   Reply With Quote
Old 10/21/2009, 11:23 AM   #13 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

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.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/21/2009, 05:35 PM   #14 (permalink)
Homebrew Developer
 
socca1157's Avatar
 
Join Date: Jun 2009
Location: Louisville, KY
Posts: 312
Likes Received: 0
Thanks: 32
Thanked 60 Times in 28 Posts
Default

The modern user wont be able to adjust this though.

This is a patch for the phone itself correct?
__________________
Beerology 101 | Liquorpedia | FMLshake | TFLNshake | MLIAshake
FMLpro | PocketParty | FreeSun | Penguin Panic | Jot It | Cloud Hopper
___
Killin' It LLC | Austin Cameron | WebOS & Web Development
socca1157 is offline   Reply With Quote
Old 10/21/2009, 05:39 PM   #15 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

The 'modern user' ?

This is a patch like any other patch really.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Old 10/21/2009, 05:40 PM   #16 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by socca1157 View Post
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
Jason Robitaille is offline   Reply With Quote
Old 10/21/2009, 06:12 PM   #17 (permalink)
Member
 
wkalam2's Avatar
 
Join Date: Jul 2009
Location: Chicago
Posts: 61
Likes Received: 0
Thanks: 6
Thanked 13 Times in 8 Posts
Default

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!
wkalam2 is offline   Reply With Quote
Old 10/21/2009, 06:39 PM   #18 (permalink)
Member
 
Join Date: Jun 2009
Posts: 770
Likes Received: 0
Thanks: 37
Thanked 276 Times in 83 Posts
Default

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
diomark is offline   Reply With Quote
Old 10/21/2009, 06:45 PM   #19 (permalink)
Homebrew Developer
 
socca1157's Avatar
 
Join Date: Jun 2009
Location: Louisville, KY
Posts: 312
Likes Received: 0
Thanks: 32
Thanked 60 Times in 28 Posts
Default

Well I meant average Pre users, someone not on PreCentral. So this won't really help developers.
__________________
Beerology 101 | Liquorpedia | FMLshake | TFLNshake | MLIAshake
FMLpro | PocketParty | FreeSun | Penguin Panic | Jot It | Cloud Hopper
___
Killin' It LLC | Austin Cameron | WebOS & Web Development
socca1157 is offline   Reply With Quote
Old 10/21/2009, 06:53 PM   #20 (permalink)
Member
 
TheMarco's Avatar
 
Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
Default

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.
__________________
My shiny new TouchPad apps: Scientific RPN Calculator HD - Screamager HD
TheMarco is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0