Drachengeifer1 / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Interpolation (car pos/rot) #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
At every fps (low or high) it is seeable that cam/car pos and rot aren't 
smooth. Game kind of feels like it had lower fps than gpu does. Enabling Vsync 
helps, but not much.
This needs investigation.
But I think it's the problem with that 160 Hz simulation frequency and 82 Hz 
game update. Also multi threading can have influence.

Check in game.cfg:
[ sim ]
bullet_freq = 160.000000
bullet_iter = 24
dynamics_iter = 30
game_freq = 82.000000
multi_thr = 1
thread_sleep = 5

We probably should use last 2 pos/rot states from sim and 
interpolate/extrapolate (for actual time at which rendering happens) to get not 
the last sim result but the result for given time. Probably extrapolated since 
rendering will happen after simulation result.

Original issue reported on code.google.com by Cry...@gmail.com on 6 Nov 2012 at 8:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by Cry...@gmail.com on 2 Apr 2014 at 11:42

GoogleCodeExporter commented 8 years ago
Closing, not time to test it, ancient issue.

Original comment by Cry...@gmail.com on 4 Jun 2014 at 6:33