LoadFile( bHeaderOnly ): only load image dimensions
caching TM4: 37 secs -> 28 secs only implemented for PNG; 90% of song images are PNG anyway
This commit is contained in:
@@ -684,7 +684,8 @@ void Song::TidyUpData()
|
||||
continue; // skip
|
||||
|
||||
CString sPath = m_sSongDir + arrayImages[i];
|
||||
SDL_Surface *img = RageSurface::LoadFile( sPath );
|
||||
/* We only care about the dimensions. */
|
||||
SDL_Surface *img = RageSurface::LoadFile( sPath, true );
|
||||
if( !img )
|
||||
{
|
||||
LOG->Trace("Couldn't load '%s': %s", sPath.c_str(), SDL_GetError());
|
||||
|
||||
Reference in New Issue
Block a user