Don't evaluate the ActorScroller transform function every time though Draw.

Cache TweenState values at a provided interval, then interpolate between the TweenStates.
TODO: Precalculate these TweenStates in Init?
This commit is contained in:
Chris Danford
2005-09-02 21:42:34 +00:00
parent 2bfa9b23dd
commit f55e8a54e6
8 changed files with 79 additions and 3 deletions
+3
View File
@@ -185,6 +185,7 @@ void ScreenCredits::Init()
4,
false,
sBackgroundsTransformFunction,
1,
false,
false );
SET_XY( m_ScrollerBackgrounds );
@@ -196,6 +197,7 @@ void ScreenCredits::Init()
4,
false,
sBackgroundsTransformFunction,
1,
false,
false );
SET_XY( m_ScrollerFrames );
@@ -247,6 +249,7 @@ void ScreenCredits::Init()
40,
false,
sTextsTransformFunction,
1,
false,
false );
SET_XY( m_ScrollerTexts );