- renamed WResourceManager::autoResize() to ResetCacheLimits(), since the function doesn't actually resize anything. It's merely setting clamping limits on when we should purge the cache.
- fixed the debug framerate calculation / drawing code (consolidated duplicated functions & variables mDelta vs a win-only mDeltaTime, no reason to have two), repositioned it to draw on the bottom left (it was colliding with other debug text for the cache info). - for debug testing purposes, added a #define override to force the image cache to work with less memory (I've picked 8 megs, which is what the psp seems to use - the normal default on win/linux is 20 megs).
This commit is contained in:
@@ -84,7 +84,6 @@ class JGE
|
||||
JApp *mApp;
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
float mDeltaTime;
|
||||
JMusic *mCurrentMusic;
|
||||
#else
|
||||
public:
|
||||
@@ -93,7 +92,7 @@ class JGE
|
||||
#endif
|
||||
|
||||
bool mDone;
|
||||
float mDelta;
|
||||
float mDeltaTime;
|
||||
bool mDebug;
|
||||
bool mPaused;
|
||||
char mDebuggingMsg[256];
|
||||
@@ -155,6 +154,9 @@ class JGE
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
float GetDelta();
|
||||
|
||||
// override the current delta time.
|
||||
void SetDelta(float delta);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// Return frame rate.
|
||||
///
|
||||
@@ -320,10 +322,6 @@ class JGE
|
||||
|
||||
void Assert(const char *filename, long lineNumber);
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
void SetDelta(float delta);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
JGE();
|
||||
~JGE();
|
||||
|
||||
Reference in New Issue
Block a user