Discussion:
[cairo] Wanted to be a Cairo's user
c***@aol.com
2018-11-03 19:46:42 UTC
Permalink
Hi Flow,

50.000 or 50,000 knots sounds like a lot to draw. What kind of shapes are you drawing?

If you are looking for getting the max fps, maybe opengl. If you need to output to different surfaces, print output, draw text, etc. cairo might be a good choice. If you use GTK you can try both and use what works best for your situation.

This uses cairo to draw some vector boids with a fps timer. Maybe it is of some help.
https://gitlab.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/boids2.c

Eric
Flow Hoa
2018-11-03 20:21:20 UTC
Permalink
Thank you so much for your answer. Of course there are many knots to transform and that is why OpenCL (CL) is my first pal. My plan is to use Cairo to collect the math results as coordinates to draw the nice true-anti-aliased angular shapes (polygones).
Question should have been :
How many vector designed triangles would be drawn on most common non-gamer graphic cards? (troubles to express my self in english, I am sorry).
Reguards

Florian LEJEUNE
HuntR Interactive (startuping)

Le 3 nov. 2018 à 20:46, "***@aol.com<mailto:***@aol.com>" <***@aol.com<mailto:***@aol.com>> a écrit :


Hi Flow,

50.000 or 50,000 knots sounds like a lot to draw. What kind of shapes are you drawing?

If you are looking for getting the max fps, maybe opengl. If you need to output to different surfaces, print output, draw text, etc. cairo might be a good choice. If you use GTK you can try both and use what works best for your situation.

This uses cairo to draw some vector boids with a fps timer. Maybe it is of some help.

https://gitlab.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/boids2.c

Eric
Continue reading on narkive:
Loading...