Box2s - Stuttering objects
Monkey Forums/Monkey Programming/Box2s - Stuttering objects
| ||
Hi, using box2d, moving bodies at higher speeds start to stutter (on all tested platforms, release mode). See example here: (use cursor left/right) http://skopia.de/Test/MonkeyGame.html I've tried changing update rate, the physics scale, fixed update logic, iterations and the body properties like damping and mass. Any suggestions? |
| ||
This article is not Monkey but I think it will probably be useful to you? http://www.unagames.com/blog/daniele/2010/06/fixed-time-step-implementation-box2d |
| ||
What I'm seeing in your example is consistent with the general instability of HTML5 canvas rendering. Considering how simple your world is and the profile results I see in Chrome, I suspect that what you're seeing across the board are just variations on the general theme of frame-rate jitter and nothing to do with box2d. Frame-rate instability was discussed at length here: http://www.monkeycoder.co.nz/Community/posts.php?topic=1436. If you read that and still think there's another problem then you'll need to post your Monkey code as otherwise people are just guessing. |