Evas font: Disabled word/metric caching due to bugs.

SVN revision: 62547
This commit is contained in:
Tom Hacohen 2011-08-18 07:21:44 +00:00
parent 49afea24f8
commit 7a281f0745
2 changed files with 11 additions and 2 deletions

View File

@ -764,7 +764,7 @@ into N regions (1 per core) to speed up rendering in software when you
have multiple cpu cores. have multiple cpu cores.
--enable-word-cache --enable-word-cache **DISABLED DUE TO BUGS**
Cache rendered words and draw them as a single object, instead of Cache rendered words and draw them as a single object, instead of
individual characters. This is a big gain for things like neon which individual characters. This is a big gain for things like neon which
@ -788,7 +788,7 @@ the e-devel mailing list or Brett Nash <nash@nash.id.uau>
For GL see metric caching... For GL see metric caching...
--enable-metric-cache --enable-metric-cache **DISABLED DUE TO BUGS**
Metric caching saves character metrics between characters in words. Metric caching saves character metrics between characters in words.
This enables it to render words much quicker as it avoids things like This enables it to render words much quicker as it avoids things like

View File

@ -7,6 +7,15 @@
#include "evas_font_ot.h" #include "evas_font_ot.h"
/* Forcibly disable the broken word/metric caching. */
#ifdef METRIC_CACHE
# undef METRIC_CACHE
#endif
#ifdef WORD_CACHE
# undef WORD_CACHE
#endif
#define WORD_CACHE_MAXLEN 50 #define WORD_CACHE_MAXLEN 50
/* How many to cache */ /* How many to cache */
#define WORD_CACHE_NWORDS 40 #define WORD_CACHE_NWORDS 40