mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Temporary fix for mouse input. Improved performance in player-colour model renderer. Also improved performance in lighting, at least in unoptimised builds.
This was SVN commit r2328.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "MeshManager.h"
|
||||
#include "lib/res/ogl_tex.h"
|
||||
#include "lib/res/h_mgr.h"
|
||||
#include "Profile.h"
|
||||
|
||||
#include "ps/CLogger.h"
|
||||
#define LOG_CATEGORY "graphics"
|
||||
@@ -261,6 +262,8 @@ void CModel::GenerateBoneMatrices()
|
||||
{
|
||||
if (!m_Anim || !m_BoneMatrices) return;
|
||||
|
||||
PROFILE( "generating bone matrices" );
|
||||
|
||||
assert(m_pModelDef->GetNumBones() == m_Anim->m_AnimDef->GetNumKeys());
|
||||
|
||||
m_Anim->m_AnimDef->BuildBoneMatrices(m_AnimTime,m_BoneMatrices);
|
||||
|
||||
Reference in New Issue
Block a user