File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Generals/Code/GameEngine/Source/GameClient/Drawable/Update Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3232
3333#include " GameClient/Drawable.h"
3434#include " GameClient/Module/SwayClientUpdate.h"
35+ #include " Common/FramePacer.h"
3536#include " Common/Player.h"
3637#include " Common/PlayerList.h"
3738#include " Common/ThingFactory.h"
@@ -114,7 +115,10 @@ void SwayClientUpdate::clientUpdate( void )
114115 return ;
115116 }
116117
117- m_curValue += m_curDelta;
118+ // TheSuperHackers @tweak The tree sway time step is now decoupled from the render update.
119+ const Real timeScale = TheFramePacer->getActualLogicTimeScaleOverFpsRatio ();
120+
121+ m_curValue += m_curDelta * timeScale;
118122 if (m_curValue > 2 *PI)
119123 m_curValue -= 2 *PI;
120124 Real cosine = Cos (m_curValue);
You can’t perform that action at this time.
0 commit comments