mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
neutrino: speed up the fontrenderer
Speed up the fontrenderer by *not* using the GXA accelerator. To prevent artifacts, add a routine to framebuffer class to sync on the GXA engine being ready with drawing. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@196 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
|
||||
#include <system/debug.h>
|
||||
|
||||
//#undef USE_NEVIS_GXA // since OSD problem gone with new driver, until GXA will be faster//reenabled GXA-luc
|
||||
/* Drawing pixels is actually faster without the GXA accelerator (wich OTOH is
|
||||
faster for drawing lines, so disable it here. */
|
||||
#undef USE_NEVIS_GXA
|
||||
|
||||
FT_Error FBFontRenderClass::myFTC_Face_Requester(FTC_FaceID face_id,
|
||||
FT_Library /*library*/,
|
||||
@@ -455,6 +457,11 @@ void Font::RenderString(int x, int y, const int width, const char *text, const u
|
||||
spread_by = 1;
|
||||
}
|
||||
|
||||
/* the GXA seems to do it's job asynchonously, so we need to wait until
|
||||
it's ready, otherwise the font will sometimes "be overwritten" with
|
||||
background color */
|
||||
frameBuffer->waitForIdle();
|
||||
|
||||
for (; *text; text++)
|
||||
{
|
||||
FTC_SBit glyph;
|
||||
|
Reference in New Issue
Block a user