On Tuesday, 19 March 2019 at 15:33:19 UTC, Ron Tarrant wrote:
On Tuesday, 19 March 2019 at 00:54:34 UTC, Michelle Long wrote:
I've added a function to addOnDraw for a DrawingArea and it paints using the code I have when I resize.

I added a queueDraw in threadsAddIdle and it seems to draws the screen immediately but it does not seem to be called again.

If I put queueDraw inside the addOnDraw routine then the animation works but it is quite slow, about 1 fps and cpu usage is 100% without it, it is 0%.

I haven't dug into this stuff yet for my blog, but I have sourced some references. Here's one that may help:

https://www.cairographics.org/threaded_animation_with_cairo/

Not really what I'm after(maybe later). Seems the code was running quite fast but I thought it should have displayed the results faster

Reply via email to