On Sun, Apr 21, 2013 at 8:28 AM, ed44 <[email protected]> wrote:
> On 04/21/2013 03:34 PM, rosea.grammostola wrote:
>>
>> On 04/21/2013 03:32 PM, ed44 wrote:
>>
>>>
>>> ps. i did a simple test with cairo...it can draw 1000+ cells ( rects,
>>> filled and stroked, like in the pattern view ) in 0.04 sec's. So things
>>> can be faster than what i have right now.
>>>
>>
>> Non-sequencer doesn't play well with latest ntk iirc. There is a new
>> version of non-sequencer in the making (looks really cool), but you probably
>> need some patience for it. (There is special branch for that new one in git,
>> very early preview).
>>
>> \r
>>
>>
>>
>
> Thanks for your reply.
>
> In fact, the time given above includes writing the image to a png ( to check
> ).
> If i leave out the png write, times are around 0.007 - 0.01 seconds.
>
> I checked out the new seq. branch but it is not possible yet to see the
> improvements.
>
> When i have time i'm going to try some improvements myself.
> The prob. with the current code is that it draws every cell apart while
> giving cairo the full path of all cells and draw them with a single fill and
> stroke
> is much faster.
>
> Also a method of creating a "rubberstamp" for every possible cell and
> "stamping" them on
> their positions is equally fast. I tested both ways with the above mentioned
> result.
>
> If i have something better than talk i'll post it here.
>
> Cheers,
> Ed.
>

Ed, the reason the current release is 'slow', as you discovered, is
that some drawing operations in Cario are 100s of times slower than
their X11 counterparts. In the new branch, I avoid these operations.
Still, it was merely 'slow' as in slower than it used to be. Not slow
as in having to wait 2 seconds. If you indeed tried the
'non-sequencer-reimplement-canvas' branch and it's still slow, then
there is definitely something else going on that has nothing to do
with Cairo. 2 seconds is rather extreme. I need to know more about
your environment. Are *all* FLTK1.3 and NTK applications slow for you?
What video card and driver are you using? What version of X? Have you
tried switching between EXA and XAA? Have you tried the
XAAOffscreenPixmaps = "no" Xorg option?


Reply via email to