Limit video framerate of STATE_LOGGING_VIDEO_MP4
Posted: Sat Jan 06, 2018 7:30 pm
As the title states, is there a way to constrain the framerate of the video created using the command:
p.startStateLogging( p.STATE_LOGGING_VIDEO_MP4, filename )
As of now, the framerate fluctuates based on the cpu load of my computer. If this is connected to the framerate that the Physics simulator is running at perhaps I'm not setting it correctly? I'm currently using:
p.setPhysicsEngineParameter( fixedTimeStep=1./60., ... )
But reducing the fixedTimeStep value seems to have no effect on the logging. I've also tried the following on playback and it fails to solve the issue.
p.setRealTimeSimulation( True )
I'm probably mis-understanding how bullet works, but any help would be appreciated.
p.startStateLogging( p.STATE_LOGGING_VIDEO_MP4, filename )
As of now, the framerate fluctuates based on the cpu load of my computer. If this is connected to the framerate that the Physics simulator is running at perhaps I'm not setting it correctly? I'm currently using:
p.setPhysicsEngineParameter( fixedTimeStep=1./60., ... )
But reducing the fixedTimeStep value seems to have no effect on the logging. I've also tried the following on playback and it fails to solve the issue.
p.setRealTimeSimulation( True )
I'm probably mis-understanding how bullet works, but any help would be appreciated.