[Gambas-user] Cairo in Gambas
Benoît Minisini
g4mba5 at gmail.com
Thu May 14 04:50:14 CEST 2020
Le 14/05/2020 à 04:45, Benoît Minisini a écrit :
> Le 14/05/2020 à 04:43, Benoît Minisini a écrit :
>> Le 14/05/2020 à 04:14, martin p cristia a écrit :
>>> Sad to hear that because Cairo is 5-10 times faster that Paint as can
>>> be seen in the project attatched.
>>>
>>> Not sure what you mean about the "linux toolkit"
>>>
>>> El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org escribió:
>>>> Re: Cairo in Gambas
>>>> Note that nobody apparently maintains Cairo anymore. The Linux GUI
>>>> toolkit situation is not quite good at the moment...
>>>
>>
>> If you use Qt4. If you use Qt5, Paint class is 3x times faster than
>> Cairo.
>>
>> It seems there is a problem with Qt4.
>>
>
> Anyway, your benchmark is silly. You mainly test the drawing of rotated
> text. If you remove the rotation, you will get about the same speed
> whatever you use (with always a bit of slowness with qt4).
>
Moreover, it has many bugs and useless method calls (like Paint.Stroke).
If you want to compare, you have to do exactly the same thing in both
drawing routines. In ohter words, what is displayed should be the same,
except for the text which is never drawn the same way between toolkits.
Regards,
--
Benoît Minisini
More information about the User
mailing list