View Single Post
  #5  
Old 06-26-2014, 05:58 AM
Erikvdb Erikvdb is offline
Member
 
Join Date: May 2013
Posts: 63
Hi Emily,
Velocity is distance over time. In your code, that last element isn't specified, so I assume Vizard just applies the same translation regardless of how much time has past since updating the last frame. Of course, the problem is that frametimes vary all the time, maybe just very slightly if it runs very stable on one machine, but on other hardware you'll get totally different timings.

Add viz.elapsed() or viz.getFrameElapsed() as an additional multiplier and adjust your MOVE_SPEED_MULTIPLIER accordingly (the new speed is likely going to be very slow)

So try:
Code:
tomove = mazeExptParams.MOVE_SPEED*MOVE_SPEED_MULTIPLIER*viz.getFrameElapsed()
#etc.
And see if that helps.
Reply With Quote