diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-10-31 14:34:40 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-11-01 00:43:11 +0300 |
commit | 5c1f4beb639ba4ab6ab62a34b83d035d10d12afa (patch) | |
tree | 59b58b59878c4fda87889060b4f73fb2134f05e9 /source/gameengine/Ketsji/KX_Scene.cpp | |
parent | a501eb51e280251b4ec99efacade6de261f4373b (diff) |
BGE: Moto: Use float for MT_Scalar.temp_bge_moto
Test:
4104 rotating spheres.
Without moto modifications:
Logic : 5.15 : 5%
SceneGraph : 8.50 : 8%
Rasterizer : 20.90 : 21%
With:
Logic : 5.00 : 4%
SceneGraph : 8.00 : 8%
Rasterizer : 20.25 : 20%
Diffstat (limited to 'source/gameengine/Ketsji/KX_Scene.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index abf6b639fef..f616b287d8b 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -1557,9 +1557,9 @@ void KX_Scene::CalculateVisibleMeshes(RAS_IRasterizer* rasty,KX_Camera* cam, int planes[5].setValue(cplanes[3].getValue()); // bottom CullingInfo info(layer); - double mvmat[16] = {0}; + float mvmat[16] = {0}; cam->GetModelviewMatrix().getValue(mvmat); - double pmat[16] = {0}; + float pmat[16] = {0}; cam->GetProjectionMatrix().getValue(pmat); dbvt_culling = m_physicsEnvironment->CullingTest(PhysicsCullingCallback,&info,planes,5,m_dbvt_occlusion_res, |