forked from bartvdbraak/blender
036ebc5523
Four new buttons in World settings to control frame rate: fps: Nominal frame rate in frame per second. Also sets the physics timestep = 1/fps phys: Maximum number of physics timestep per game frame in case the actual fps is less than nominal. This allows the physics to keep up with real time even if the graphics slows down the game. sub: Fixed number of simulation substeps per physic timestep. Improves the precision of the physics simulation. Useful for fast moving objects for example. log: Maximum number of logic steps per game frame in case the actual fps is less than nominal. This allows the logic system to follow the physics simulation. Upper bound = phys (setting the value higher than phys has no effect). On games with heavy logic system, it is useful to set this value to 1, to keep logic time under control. All these values were already accessible from Python except phys: GameLogic.getMaxPhysicsFrame(): Gets the maximum number of physics frame per render frame. GameLogic.setMaxPhysicsFrame(phys): Sets the maximum number of physics timestep that are executed per render frame. Higher value allows physics to keep up with realtime even if graphics slows down the game. Physics timestep is fixed and equal to 1/tickrate (see setLogicTicRate) maxphysics/ticrate is the maximum delay of the renderer that physics can compensate. phys: integer |
||
---|---|---|
.. | ||
BL_ActionActuator.cpp | ||
BL_ActionActuator.h | ||
BL_ArmatureObject.cpp | ||
BL_ArmatureObject.h | ||
BL_BlenderDataConversion.cpp | ||
BL_BlenderDataConversion.h | ||
BL_DeformableGameObject.cpp | ||
BL_DeformableGameObject.h | ||
BL_MeshDeformer.cpp | ||
BL_MeshDeformer.h | ||
BL_ModifierDeformer.cpp | ||
BL_ModifierDeformer.h | ||
BL_ShapeActionActuator.cpp | ||
BL_ShapeActionActuator.h | ||
BL_ShapeDeformer.cpp | ||
BL_ShapeDeformer.h | ||
BL_SkinDeformer.cpp | ||
BL_SkinDeformer.h | ||
BL_SkinMeshObject.cpp | ||
BL_SkinMeshObject.h | ||
BlenderWorldInfo.cpp | ||
BlenderWorldInfo.h | ||
CMakeLists.txt | ||
KX_BlenderScalarInterpolator.cpp | ||
KX_BlenderScalarInterpolator.h | ||
KX_BlenderSceneConverter.cpp | ||
KX_BlenderSceneConverter.h | ||
KX_ConvertActuators.cpp | ||
KX_ConvertActuators.h | ||
KX_ConvertControllers.cpp | ||
KX_ConvertControllers.h | ||
KX_ConvertProperties.cpp | ||
KX_ConvertProperties.h | ||
KX_ConvertSensors.cpp | ||
KX_ConvertSensors.h | ||
KX_IpoConvert.cpp | ||
KX_IpoConvert.h | ||
Makefile | ||
SConscript |