I'm working on a Cinder/Cairo app (a puzzle generator) which will be doing some CPU intensive stuff in another thread, and will only need to refresh the display at specific times, using the puzzle-generation thread to request refreshes when puzzles are complete.
Most Cinder projects have a main loop which is constantly refreshing the screen. I'm calling setFrameRate(0) in my setup, to turn this off, as I'd like to save CPU for making puzzles. I'd like to be able to request redraws dynamically.
Is there a way to do this? Calling draw() manually doesn't seem to work properly, and the app class doesn't seem to have an obvious refresh mechanism.