This commit is contained in:
Glenn Maynard
2005-06-17 00:47:22 +00:00
parent 741ae61a92
commit 361eff0205
+6 -7
View File
@@ -1,5 +1,5 @@
/* /*
* Texture policies: * Texture garbage collection policies:
* *
* Default: When DelayedDelete is off, delete unused textures immediately. * Default: When DelayedDelete is off, delete unused textures immediately.
* When on, only delete textures when we change themes, on DoDelayedDelete(). * When on, only delete textures when we change themes, on DoDelayedDelete().
@@ -15,13 +15,12 @@
* *
* This is for banners. We don't want to load all low-quality banners in * This is for banners. We don't want to load all low-quality banners in
* memory at once, since it might be ten megs of textures, and we don't * memory at once, since it might be ten megs of textures, and we don't
* *have* to, since we can reload them very quickly. We don't want to keep * need to, since we can reload them very quickly. We don't want to keep
* high quality textures in memory, either, although it's unlikely that a * high quality textures in memory, either, although it's unlikely that a
* player could actually view all banners long enough to transition to them * player could actually view all banners long enough to transition to them
* all in the course of one song select screen. * all in the course of one song select screen.
* *
* Permanent: Never delete the texture. * Permanent: Never delete the texture. This is only used for BannerCache=2 mode.
* This is only used for BannerCache=2 mode.
* *
* Policy priority is in the order PERMANENT, CACHED, VOLATILE, DEFAULT. Textures that * Policy priority is in the order PERMANENT, CACHED, VOLATILE, DEFAULT. Textures that
* are loaded DEFAULT can be changed to VOLATILE and CACHED; VOLATILE textures can only * are loaded DEFAULT can be changed to VOLATILE and CACHED; VOLATILE textures can only
@@ -302,15 +301,15 @@ void RageTextureManager::InvalidateTextures()
bool RageTextureManager::SetPrefs( RageTextureManagerPrefs prefs ) bool RageTextureManager::SetPrefs( RageTextureManagerPrefs prefs )
{ {
bool need_reload = false; bool bNeedReload = false;
if( m_Prefs != prefs ) if( m_Prefs != prefs )
need_reload = true; bNeedReload = true;
m_Prefs = prefs; m_Prefs = prefs;
ASSERT( m_Prefs.m_iTextureColorDepth==16 || m_Prefs.m_iTextureColorDepth==32 ); ASSERT( m_Prefs.m_iTextureColorDepth==16 || m_Prefs.m_iTextureColorDepth==32 );
ASSERT( m_Prefs.m_iMovieColorDepth==16 || m_Prefs.m_iMovieColorDepth==32 ); ASSERT( m_Prefs.m_iMovieColorDepth==16 || m_Prefs.m_iMovieColorDepth==32 );
return need_reload; return bNeedReload;
} }
void RageTextureManager::DiagnosticOutput() const void RageTextureManager::DiagnosticOutput() const