webOS Nation Forums >  Homebrew >  webOS patches > [PATCH][SMARTPHONE][TOUCHPAD] Mojo FPS Booster [2.x] [3.x]
[PATCH][SMARTPHONE][TOUCHPAD] Mojo FPS Booster [2.x] [3.x]

  Reply
Like Tree8Likes

 
LinkBack Thread Tools Display Modes
Old 11/15/2011, 07:30 AM   #21 (permalink)
Member
 
Join Date: Dec 2009
Location: Cleveland, Ohio
Posts: 1,627
Likes Received: 27
Thanks: 161
Thanked 196 Times in 87 Posts
Default

Thanks shifty!
stu5797 is offline   Reply With Quote
Old 11/15/2011, 09:23 AM   #22 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

No worries, I found out that the 2.1.2 Veer frameworks are different to the 2.1.0 Pre2 etc frameworks, and for some reason there's no 2.1.2 option on the Preware submission form.
I've submitted a separate patch specifically for the veer. In the meantime, said patch is attached below
Attached Files
File Type: patch Mojo FPS Booster Veer.patch (1.5 KB, 8 views) Email Attachment
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Old 11/15/2011, 11:46 AM   #23 (permalink)
Member
 
Join Date: Oct 2011
Posts: 16
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ShiftyAxel View Post
No worries, I found out that the 2.1.2 Veer frameworks are different to the 2.1.0 Pre2 etc frameworks, and for some reason there's no 2.1.2 option on the Preware submission form.
I've submitted a separate patch specifically for the veer. In the meantime, said patch is attached below
for 2.1.2
you want to update usr/palm/frameworks/mojo.core/submission/33/concatenated.js from your changes, and usr/palm/frameworks/mojo.core/submission/33mojo_core.js, and then usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js (almost same as 33mojo_core.js)
moo.tinys is offline   Reply With Quote
Old 11/15/2011, 07:32 PM   #24 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

If you'll read the post in it's entirety, you'll notice that I've already updated the patch with that very change.
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Old 11/16/2011, 12:08 PM   #25 (permalink)
Member
 
Join Date: Oct 2011
Posts: 16
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ShiftyAxel View Post
If you'll read the post in it's entirety, you'll notice that I've already updated the patch with that very change.
there're 2 patch relative to veer here, and i fail to see any changes to usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js, neither on the other 2 patches for other webos version. where is the patch i miss?

the patch you upload in later reply, is exactly the same as your first post in thread thread. something wrong with my browser? or did you upload the wrong file?

btw, i guess same files has to be patch for 2.* 3.*, not just veer
moo.tinys is offline   Reply With Quote
Old 11/16/2011, 12:24 PM   #26 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

None of the patches ever made changes to palmmojo_coreVersion1_0.js, there's nothing in there relating to Mojo's FPS or scrolling. And the Veer patch on the first post is identical to the one on page 2.
The Pre3, Touchpad and Veer all run mojo.core 33, whereas older devices such as Pre-/+, Pre2 and Pixi run mojo.core 32. I uploaded the Veer patch seperately because Preware doesn't have an option for webOS 2.1.2 (Veer) and I didn't want to cause confusion over the naming.
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Old 11/16/2011, 12:57 PM   #27 (permalink)
Member
 
Join Date: Oct 2011
Posts: 16
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ShiftyAxel View Post
None of the patches ever made changes to palmmojo_coreVersion1_0.js, there's nothing in there relating to Mojo's FPS or scrolling. And the Veer patch on the first post is identical to the one on page 2.
The Pre3, Touchpad and Veer all run mojo.core 33, whereas older devices such as Pre-/+, Pre2 and Pixi run mojo.core 32. I uploaded the Veer patch seperately because Preware doesn't have an option for webOS 2.1.2 (Veer) and I didn't want to cause confusion over the naming.
are you sure the changes take effect after the patch? i suggest you change the value to more strange so we can feel it really affect

when you want to change something like
--- .orig/usr/palm/frameworks/mojo.core/submission/33/javascript/scroll.js
+++ /usr/palm/frameworks/mojo.core/submission/33/javascript/scroll.js
@@ -10,7 +10,7 @@

// Private constants
var STEP_RATE = Animation.stepRate * 1.2,
- MAX_TIME_SKIP = STEP_RATE * 3,
+ MAX_TIME_SKIP = STEP_RATE,
i can see exactly same code but stripped in palmmojo_coreVersion1_0.js

# lsof -np 5874 |grep mojo.core
WebAppMgr 5874 root mem REG 254,0 33012 78 /usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js
WebAppMgr 5874 root 43r REG 254,0 33012 78 /usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js



# grep targetFPS /usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js
module.Types=windowTypes;exports.Child=module;return module}();var Animation=function(){var targetFPS=40;var stepRate=1/targetFPS*1E3;var showFPSUpdate=1E3;var maxExtraFrames=1;var fpsBoxId="mojo-fps-display-box";function createFpsEl(doc){var el=doc.createElement("div");el.id=fpsBoxId;el.style.position="fixed";el.style.width="60px";el.style. height="1em";el.style.top="90px";el.style.right="130px";el.style.margin="0px auto";el.style.border="1px solid #999";el.style["text-align"]="center";doc.querySelector("body").appendChild(el);return el}var Queue=function(targetWindow){this.window=
if(win){q=win._mojoAnimationQueue;if(!q){q=new Queue(win);win._mojoAnimationQueue=q;win.addEventListener("unload",cleanup)}}else throw new TypeError("Animation.getQueue: Could not find window for element");return q}};module.targetFPS=targetFPS;module.stepRate=stepRate;exports.Animation=module;return module}();var Scroll=function(){var key;var STEP_RATE=Animation.stepRate*1.2,MAX_TIME_SKIP=STEP_RATE*3,FLICK_SPEED=0.06,FLICK_RATIO=0.5,OVERSCRO LL_TARGET_SPEED=0.25,CORRECT_OVERSCROLL_SPEED=0.3,DELAYED_STOP_MS=150,MIN_SCROLL_DELTA_SIZE=3,MIN_MO VE_DELTA=1,SCROLL_EVENT_RATE=10;var PROPERTY_MAP={x:"width",y:"height"};var SCROLL_MAP={x:"scrollLeft",y:"scrollTop"};function getBorderWidth(el,border){var width=0;var styleName="border-"+border+"-width";var style=el.style[styleName];if(style){width=parseInt(style,10);

# grep MAX_TIME_SKIP /usr/palm/frameworks/mojo/builtins/palmmojo_coreVersion1_0.js
if(win){q=win._mojoAnimationQueue;if(!q){q=new Queue(win);win._mojoAnimationQueue=q;win.addEventListener("unload",cleanup)}}else throw new TypeError("Animation.getQueue: Could not find window for element");return q}};module.targetFPS=targetFPS;module.stepRate=stepRate;exports.Animation=module;return module}();var Scroll=function(){var key;var STEP_RATE=Animation.stepRate*1.2,MAX_TIME_SKIP=STEP_RATE*3,FLICK_SPEED=0.06,FLICK_RATIO=0.5,OVERSCRO LL_TARGET_SPEED=0.25,CORRECT_OVERSCROLL_SPEED=0.3,DELAYED_STOP_MS=150,MIN_SCROLL_DELTA_SIZE=3,MIN_MO VE_DELTA=1,SCROLL_EVENT_RATE=10;var PROPERTY_MAP={x:"width",y:"height"};var SCROLL_MAP={x:"scrollLeft",y:"scrollTop"};function getBorderWidth(el,border){var width=0;var styleName="border-"+border+"-width";var style=el.style[styleName];if(style){width=parseInt(style,10);
elapsedFrames;var now=Date.now();var fdr=CORRECT_OVERSCROLL_SPEED;var current=this.current;var target=this.target;var lastUpdateTime=this.lastUpdateTime;if(!lastUpdateTime)lastUpdateTime=now-STEP_RATE;elapsed=Math.min(MAX_TIME_SKIP,now-lastUpdateTime);this.lastUpdateTime=lastUpdateTime+elapsed;elapsedFrames=elapsed/STEP_RATE;if(Math.abs(target-current)<=MIN_MOVE_DELTA)current=target;else current+=zenoCalculate(fdr,elapsedFrames)*(target-current);this.current=current;this.done=elapsedFrames&&roundTowardZero(current)===
now-STEP_RATE;fdr=FLICK_SPEED;elapsed=Math.min(MAX_TIME_SKIP,now-lastUpdateTime);this.lastUpdateTime=lastUpdateTime+elapsed;elapsedFrames=elapsed/STEP_RATE;current+=zenoCalculate(fdr,elapsedFrames)*deltaDist;this.current=current;this.done=elapsed Frames&&roundTowardZero(target-current)===0;return current};FlickAnimator.checkOverscroll=function(){if(this.target>this.max||this.target<this.min){thi s.dontStop=true;this.animate=this.overscroll}};FlickAnimator.overscroll=function(){var lastUpdate,elapsed,
elapsedFrames,limit,isMaxLimit,ret,bothOutside,numFrames,frac;var now=Date.now();var amountToMoveTarget;var adjustedTarget=this.target;var fdr=CORRECT_OVERSCROLL_SPEED;var adjustedCurrent=this.current;if(!this.lastUpdateTime)this.lastUpdateTime=now-STEP_RATE;lastUpdate=this.lastUpdateTime;elapsed=Math.min(MAX_TIME_SKIP,now-lastUpdate);this.lastUpdateTime+=elapsed;elapsedFrames=elapsed/STEP_RATE;if(adjustedTarget<this.min&&adjustedCurrent<this.min){bothOutside=true;limit=this.min}else if(adjustedTarget>
moo.tinys is offline   Reply With Quote
Old 11/16/2011, 03:24 PM   #28 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

Intriguing, I'll take a look into it. I do hate those massive chunks of unformatted javascript :|
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Old 11/16/2011, 04:20 PM   #29 (permalink)
Member
 
Join Date: Aug 2011
Posts: 94
Likes Received: 19
Thanks: 2
Thanked 40 Times in 10 Posts
Default

what the heck is mojo? :-) Do I need this?
tboy2000 is offline   Reply With Quote
Old 11/16/2011, 04:26 PM   #30 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

Mojo is the framework which all the pre-touchpad webOS apps were written in. It's what provides stuff like menus, buttons etc. This patch will increase Mojo's Target FPS and Scroll Event Rate in order to make it smoother and nicer looking

I'm just this minute working on an update regarding the info moo.tinys posted, so if you want the newest version give me about 10 minutes :P either that or wait until it gets updated in preware (a few hours to a couple of days)
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]

Last edited by ShiftyAxel; 11/16/2011 at 05:24 PM.
ShiftyAxel is offline   Reply With Quote
Old 11/16/2011, 05:31 PM   #31 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

Apologies for the double post, buuuut...

UPDATE!
Turns out, the patch's settings were being overridden by the ones in palmmojo_coreVersion.js and palmInitFramework and therefore it wasn't actually doing anything. Whoops. Thanks to moo.tinys for info on palmmojo_coreVersion.js.

The good news however, is that I've updated the patches with the new settings. The patches are now separated into webOS 1.4.5, 2.1, 2.2 and 3.x. (Yup, 1.4.5 is now supported. ) and have been submitted to Preware.

For those of you who want it now, the patches are attached below. I'll also update the OP and add them there.

EDIT: Updated again! iPhone smooth scrolling! See OP!
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]

Last edited by ShiftyAxel; 11/17/2011 at 07:24 PM.
ShiftyAxel is offline   Reply With Quote
Old 11/21/2011, 12:59 AM   #32 (permalink)
Member
 
Join Date: Aug 2011
Posts: 233
Likes Received: 14
Thanks: 23
Thanked 7 Times in 7 Posts
Default

Does this negatively impact battery life significantly?
Infinite Jest is offline   Reply With Quote
Old 11/21/2011, 08:38 AM   #33 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

I've been running it for the last few days and not noticed anything, but to be honest the best advice I can give is 'try it and see'.
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0