by CJefferson · 2y ago · 0 comments
Is there any good examples for this, the examples (not unreasonably), mostly seem to do fairly trivial work.
The very simplest way to do it might be for the UI thread to send the work thread an Arc<AtomicBool>. The work thread can set the bool to true when the work is finished. The UI thread can branch on the value of the bool each frame to decide what to draw. Job done.