Game Logic: getMaxPhysicsFrame

getMaxPhysicsFrame()
  • Returns the maximum number of physics frames being executed per render frame.

Return Type:

  • integer
     
  • Range:  1 - 5
Note:
  • The default is 5 physics frames executed per render frame.
Sample Code

################## get the maximum physics frame rate
  

# import bge
import bge
  
# get the max physics frame rate
scene = bge.logic.getMaxPhysicsFrame()