forked from mirror/openmw-tes3mp
Huge Performance Increase
This commit is contained in:
parent
d1793bc4bd
commit
41769f202c
1 changed files with 12 additions and 12 deletions
|
@ -457,12 +457,12 @@ namespace MWRender{
|
||||||
|
|
||||||
Ogre::Bone* b = skel->getRootBone();
|
Ogre::Bone* b = skel->getRootBone();
|
||||||
b->setOrientation(Ogre::Real(.3),Ogre::Real(.3),Ogre::Real(.3), Ogre::Real(.3)); //This is a trick
|
b->setOrientation(Ogre::Real(.3),Ogre::Real(.3),Ogre::Real(.3), Ogre::Real(.3)); //This is a trick
|
||||||
skel->getManualBonesDirty();
|
|
||||||
skel->_updateTransforms();
|
skel->_updateTransforms();
|
||||||
skel->_notifyManualBonesDirty();
|
//skel->_notifyManualBonesDirty();
|
||||||
|
|
||||||
base->getAllAnimationStates()->_notifyDirty();
|
base->getAllAnimationStates()->_notifyDirty();
|
||||||
base->_updateAnimation();
|
//base->_updateAnimation();
|
||||||
base->_notifyMoved();
|
base->_notifyMoved();
|
||||||
|
|
||||||
for(unsigned int i = 0; i < entityparts.size(); i++){
|
for(unsigned int i = 0; i < entityparts.size(); i++){
|
||||||
|
@ -470,12 +470,12 @@ namespace MWRender{
|
||||||
|
|
||||||
Ogre::Bone* b = skel->getRootBone();
|
Ogre::Bone* b = skel->getRootBone();
|
||||||
b->setOrientation(Ogre::Real(.3),Ogre::Real(.3),Ogre::Real(.3), Ogre::Real(.3));//This is a trick
|
b->setOrientation(Ogre::Real(.3),Ogre::Real(.3),Ogre::Real(.3), Ogre::Real(.3));//This is a trick
|
||||||
skel->getManualBonesDirty();
|
|
||||||
skel->_updateTransforms();
|
skel->_updateTransforms();
|
||||||
skel->_notifyManualBonesDirty();
|
// skel->_notifyManualBonesDirty();
|
||||||
|
|
||||||
entityparts[i]->getAllAnimationStates()->_notifyDirty();
|
entityparts[i]->getAllAnimationStates()->_notifyDirty();
|
||||||
entityparts[i]->_updateAnimation();
|
//entityparts[i]->_updateAnimation();
|
||||||
entityparts[i]->_notifyMoved();
|
entityparts[i]->_notifyMoved();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -535,11 +535,11 @@ namespace MWRender{
|
||||||
bone->setOrientation(r);
|
bone->setOrientation(r);
|
||||||
|
|
||||||
|
|
||||||
skel->getManualBonesDirty();
|
|
||||||
skel->_updateTransforms();
|
skel->_updateTransforms();
|
||||||
skel->_notifyManualBonesDirty();
|
//skel->_notifyManualBonesDirty();
|
||||||
base->getAllAnimationStates()->_notifyDirty();
|
base->getAllAnimationStates()->_notifyDirty();
|
||||||
base->_updateAnimation();
|
//base->_updateAnimation();
|
||||||
base->_notifyMoved();
|
base->_notifyMoved();
|
||||||
}
|
}
|
||||||
for(int i = 0; i < entityparts.size(); i++){
|
for(int i = 0; i < entityparts.size(); i++){
|
||||||
|
@ -550,11 +550,11 @@ namespace MWRender{
|
||||||
bone->setPosition(t);
|
bone->setPosition(t);
|
||||||
if(bQuats)
|
if(bQuats)
|
||||||
bone->setOrientation(r);
|
bone->setOrientation(r);
|
||||||
skel->getManualBonesDirty();
|
|
||||||
skel->_updateTransforms();
|
skel->_updateTransforms();
|
||||||
skel->_notifyManualBonesDirty();
|
//skel->_notifyManualBonesDirty();
|
||||||
entityparts[i]->getAllAnimationStates()->_notifyDirty();
|
entityparts[i]->getAllAnimationStates()->_notifyDirty();
|
||||||
entityparts[i]->_updateAnimation();
|
// entityparts[i]->_updateAnimation();
|
||||||
entityparts[i]->_notifyMoved();
|
entityparts[i]->_notifyMoved();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue