Miko Diko
Miko Diko

Reputation: 954

Canvas Of HTML5 While Using Phonegap Too Slow On Android

Using a Galaxy S4 (Android 4.3) to run a Phonegap 3.4 app which has a HTML5's canvas running animations.

When I run the app normally, it works fine with 'ok' FPS while drawing stuff on the canvas..

When I want to turn the app to be using the max possible screen resolution of the smart-phone, adding the code below:

public void onCreate(Bundle savedInstanceState) {
    //... some code
    appView.getSettings().setLoadWithOverviewMode(true);
    appView.getSettings().setUseWideViewPort(true);
    //... more code
}

Than yes the screen resolution is OK, but the animations move at around 1 FPS.. which is very bad.

How can I improve performance ? Am I getting to the max screen resolution (code I posted) doing the right way ?

Upvotes: 1

Views: 3011

Answers (1)

QuickFix
QuickFix

Reputation: 11721

If your app is full screen, you can try the Adobe FastCanvas plugin instead of the regular Canvas, it should be much faster.

Upvotes: 1

Related Questions