Switch fixed time system. Logic updates should now happen at 30Hz, physics at 60Hz. (By default, use Python to set.) Some actuators still run at framerate (IPO, Action) for nice smooth animation, and an excuse to buy high end hardware.

Keyboard sensors can now hook escape key.  Ctrl-Break can be used from within blender if you've forgotten an end game actuator.

Fixed a stupid bug preventing some actuators working (like TrackTo).
This commit is contained in:
Kester Maddock
2004-10-16 11:41:50 +00:00
parent 0639829140
commit 7b2567924b
88 changed files with 776 additions and 567 deletions

View File

@@ -183,4 +183,38 @@ def stopDSP():
Only the fmod sound driver supports this.
DSP can be computationally expensive.
"""
def getLogicTicRate():
"""
Gets the logic update frequency.
@return: The logic frequency in Hz
@rtype: float
"""
def setLogicTicRate(ticrate):
"""
Sets the logic update frequency.
The logic update frequency is the number of times logic bricks are executed every second.
The default is 30 Hz.
@param ticrate: The new logic update frequency (in Hz).
@type ticrate: float
"""
def getPhysicsTicRate():
"""
Gets the physics update frequency
@return: The physics update frequency in Hz
@rtype: float
"""
def setPhysicsTicRate(ticrate):
"""
Sets the physics update frequency
The physics update frequency is the number of times the physics system is executed every second.
The default is 60 Hz.
@param ticrate: The new update frequency (in Hz).
@type ticrate: float
"""