Slow drawing

Drake Miller <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hello,

I'm drawing an image in gtk.window drawing event
And it's using a lot of CPU Usage.
Here's my method (Vala):
-------------
var img = new Cairo.ImageSurface.from_png("location/image.png");
var pat = new Cairo.Pattern.for_surface(img);
cr.set_source(pat);
cr.rectangle(0, 0, Screen.get_default().width(),120);
cr.clip ();
cr.paint();
----------------------------
When I draw with this method it takes 30% of CPU
Is there anyway faster than this?

Thanks !
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.