Please help benchmarking the HTML5 canvas speed

118 views
Skip to first unread message

Dennis Spreen

unread,
Feb 9, 2010, 5:23:15 AM2/9/10
to phonegap
Hi PhoneGap community,

I've recently started developing with PhoneGap and noticed a very low
screen update while using DIVs and Javascript functions to move
objects on the screen (on my HTC Magic device).
So I've switched over to the "new" HTML5 canvas element and the
refresh rate was even poorer. Then I've written a simple html5 canvas
benchmark, which justs tests some basic image drawings (contrary to the
freeciv benchmark).

Read more on the Benchmark website:

http://www.c5bench.com/

If you have some time left (3 minutes I'd say), please run the benchmark
on your phone and submit the results afterwards.
You do not need to create a PhoneGap application - it's quite ok to run
it in your standard browser (but please use the comment field to
indicate this). If you find the time to build a fullscreen PhoneGap
application this would be nice, too. Download the Benchmark files
(http://c5bench.com/C5Bench-v1.0.10.zip) and put it into your
assets/www-folder, set full screen mode and run it. Thanks!

Any help/suggestions are welcome!

Regards and thanks,
Dennis

P.S.:

If you develop for Android devices, change the DroidGap.java on line 71
to

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

in order to run you application full screen.

Dennis Spreen

unread,
Feb 11, 2010, 4:53:41 AM2/11/10
to phonegap
Thanks for all who submitted their results. If you have 3 minutes left,
please help to improve the benchmark stats! Visit with your phone
built-in browser the benchmark test:
http://c5bench.com/
and submit your result afterwards! Thank you!

Read more on the Benchmark website:
http://www.c5bench.com/

I've updated the results page and added a little bit more colour.
Regards,
Dennis

Reply all
Reply to author
Forward
0 new messages