I was trying to debug why were my debug and release builds behaving differently, and I realized it was a matter of framerate. My code runs at about 30fps in Debug and at about 250fps in Release, and I was passing the frame time to the Step method.
Now I've limited the app's framerate at 30fps and it works OK, but I'm wondering, because the simulation fails at 60fps as well, and according to what I've read around 60fps should be a good framerate. I've tried a number of velocity and position iteration numbers, and nothing seems to work. Actually I've taken them at ridiculous levels (600 and 300) and I see no drop in framerate (to be fair, it's just a dozen squares bouncing around being hit by two mouseJoint controlled boxes that represent my feet (using a Kinect))
What might I be missing here?
Now I've limited the app's framerate at 30fps and it works OK, but I'm wondering, because the simulation fails at 60fps as well, and according to what I've read around 60fps should be a good framerate. I've tried a number of velocity and position iteration numbers, and nothing seems to work. Actually I've taken them at ridiculous levels (600 and 300) and I see no drop in framerate (to be fair, it's just a dozen squares bouncing around being hit by two mouseJoint controlled boxes that represent my feet (using a Kinect))
What might I be missing here?