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/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h | |
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/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h index 80b1528b161..c7d2940c934 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h @@ -303,13 +303,13 @@ public: void RenderText2D(RAS_TEXT_RENDER_MODE mode, const char *text, int xco, int yco, int width, int height); - void applyTransform(double *oglmatrix, int objectdrawmode); + void applyTransform(float *oglmatrix, int objectdrawmode); void PushMatrix(); void PopMatrix(); /// \see KX_RayCast - bool RayHit(struct KX_ClientObjectInfo *client, class KX_RayCast *result, double *oglmatrix); + bool RayHit(struct KX_ClientObjectInfo *client, class KX_RayCast *result, float *oglmatrix); /// \see KX_RayCast bool NeedRayCast(struct KX_ClientObjectInfo *, void *UNUSED(data)) { return true; } |