On Tue, 25 Jan 2005 23:31:38 -0500, groover <email@hidden> wrote:
> On Jan 24, 2005, at 5:09 PM, David Dunham wrote:
>> So I'm probably missing some trick relating to drawing from a thread,
>> though possibly it's something related to Quartz coordinates or
>> flushing in general.
> You might try drawing your graphics from your main thread, or if in
> another thread, use
> some of the MP API calls like EnterCriticalRegion(); do_some_drawing();
> ExitCriticalRegion(); Etc.
> Look in the Multiprocessing Documentation to get some MP foundation on
> apple developers web site
> and I'm sure you'll solve your problem. Just takes patience and time to
> find and test the method that
> works best for your situation. Have fun and be creative.
You shouldn't need to use any synchronization (critical regions, semaphores,
etc.) with quartz. As long as the areas being drawn to by different threads
don't overlap then you can draw from as many threads as you want and it
shouldn't make any difference. You'd only need to synchronize drawing if you
have to maintain a specific Z (back to front) order of things that do
overlap.
My theory is that the event loop doesn't know that the context needs to be
flushed to the screen. Ether it's not being marked as dirty or things are
not connected properly so that the update event gets to the window manager.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden