Remove composited text. The large amount of memory it uses is a bigger penalty than drawing a quad for each glyph.
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
#include "SDL_utils.h"
|
||||
#include "SDL_dither.h"
|
||||
|
||||
#include "CompositedText.h"
|
||||
|
||||
#include "RageTimer.h"
|
||||
|
||||
static void GetResolutionFromFileName( CString sPath, int &Width, int &Height )
|
||||
@@ -84,15 +82,7 @@ void RageBitmapTexture::Create()
|
||||
|
||||
/* Create (and return) a surface ready to be loaded to OpenGL */
|
||||
/* Load the image into an SDL surface. */
|
||||
SDL_Surface *img;
|
||||
if( GetID().filename.Right(3).CompareNoCase("ini")==0 )
|
||||
{
|
||||
img = CreateCompositedText( GetID().filename, GetID().text );
|
||||
}
|
||||
else
|
||||
{
|
||||
img = IMG_Load( GetID().filename );
|
||||
}
|
||||
SDL_Surface *img = IMG_Load( GetID().filename );
|
||||
|
||||
|
||||
/* XXX: Wait, we don't want to throw for all images; in particular, we
|
||||
|
||||
Reference in New Issue
Block a user