Hi. I have a clutter application which renders actors on the stage through gtk-clutter-embed. In one of the cases in the application flow, I remove actors from stage and add new ones and immediately, I execute a part of code which is CPU intensive.I observe that clutter queues redraws and and processes them only when CPU is free, and hence in my application, the draw happens after the CPU intensive job is done, thereby causing a delay in screen updation.
Is there any way I can request clutter to flush the pending redraws. And then query to check if there are no more paint requests and only then, continue to execute the CPU intensive job? However, I found an approach, where I put the CPU intensive code in a timeout and this works. But it is not a good approach as the value of timeout is solely depandant on the time required to process all the paint requests which might be different in different hardware and processors. Currently, I am using clutter 0.8 and clutter-gtk-0.8 on a ARM processor with hardware acceleration. -- Rajith
