Skip to content

Request for box2d jquery

blee03291 edited this page Jan 23, 2014 · 1 revision

hi!

I used box2d-jquery today. I checked box2d-jquery animation'fps. That fps was 30. but after i modified your code "jquery.box2d.js", i checked animation'fps. That fps was about 60.

my changed logs is

  1. i changed "translateX, translateY" to "translate3d"
  2. changed draw loop "settimeout" to "requestAnimationFrame"

please apply my changed logs to your code.

thank you!

Clone this wiki locally