Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2006-05-10 06:04:21 +0400
committerErwin Coumans <blender@erwincoumans.com>2006-05-10 06:04:21 +0400
commit1567254b12db7b4c0ab04cd5bf1eec39a9a20a03 (patch)
treea292beac27534a997195329ae4326af125331481 /source/gameengine
parent41623cbdb965874111a62c21b105203c6901cf69 (diff)
(experimental) logic timestep to 60hertz instead of 30 hertz.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_KetsjiEngine.cpp4
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
index 20e017cbf1b..4d6b70a0b3c 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
@@ -78,8 +78,8 @@
// If define: little test for Nzc: guarded drawing. If the canvas is
// not valid, skip rendering this frame.
//#define NZC_GUARDED_OUTPUT
-#define DEFAULT_LOGIC_TIC_RATE 30.0
-#define DEFAULT_PHYSICS_TIC_RATE 90.0
+#define DEFAULT_LOGIC_TIC_RATE 60.0
+#define DEFAULT_PHYSICS_TIC_RATE 60.0
const char KX_KetsjiEngine::m_profileLabels[tc_numCategories][15] = {
"Physics:", // tc_physics
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
index 8721ad008d9..9583839a7ae 100644
--- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
+++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
@@ -530,7 +530,7 @@ bool CcdPhysicsEnvironment::proceedDeltaTime(double curTime,float timeStep)
{
// define this in blender, the stepsize is 30 hertz, 60 hertz works much better
-#define SPLIT_TIMESTEP 1
+//#define SPLIT_TIMESTEP 1
#ifdef SPLIT_TIMESTEP
proceedDeltaTimeOneStep(0.5f*timeStep);