On 07/16/12 07:59, Matthias Melcher wrote:
> 
> On 16.07.2012, at 15:43, Jayaram wrote:
> 
>> I was using FLTK 1.1.7 with Nano-X 0.91 and nxlib 0.45. I upgraded these to 
>> FLTK 1.3.0, Nano-X  and Nxlib to the latest development head to add utf-8 
>> support.
>> I see that there is a degradation of performance in displaying screens on 
>> the same target that I was running the earlier versions on.              I 
>> am using pcf font files.
>> Is the newer fltk slower with the utf-8 support added ?
> 
> FLTK 1.3 uses larger data types for some basic variables. Graphics 
> coordinates are now 32 instead of 16 bits. UTF8 rendering should not have any 
> impact for ASCII text. Only when massive amounts of glyphs are required for 
> large fonts, initialisation may be slower than usual. There is one additional 
> indirection for all graphics calls, but that is in todays CPU terms close to 
> nothing. In return we get multiple rendering contexts, including printing.
> 
> Other than that , the code is very similar.
> 
> Can you specify what exactly seems slower now than it has been?

        Perhaps OP's now using antialiased font rendering, whereas before 
non-aa.

        IIRC back 1.1.7 xft was default off, whereas now its default on.
        Try rebuilding fltk with "configure --disable-xft" to see if that
        speeds things up.
        
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to