Philzen / WebView-MultiTouch-Polyfill

A polyfill to gap missing multitouch functionality in HTML5 apps on Android 2.x
35 stars 9 forks source link

Performance Optimisation: Check and limit rendering frequency #3

Open Philzen opened 12 years ago

Philzen commented 12 years ago

As per http://smustalks.appspot.com/cross-device-sfhtml5-12/#56, it sounds good to a. measure and b. install a facility to limit the firing rate of touch updates, especially when more than two fingers are touching the screen and wildly moving.

By doing this once on the (faster?) java side there's no need to clutter up the JS any further, still max framerate could be set via JS bridge (possible to calculate default based on hardware?)

fastrde commented 12 years ago

Limitation of rendering frequency can be done by the TimerClass added in Issue #20. Checking is not implemented yet.

Philzen commented 10 years ago

Have been using this for quite a while, with no performance degradation whatsoever.

Will see if i can implement some kind of queue, then #27 (which i found can basically happen on any device) will be easy to cover...