 |
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
Wizumwalt@gmail.com Guest
 |
Posted: Sat Jul 07, 2007 11:30 pm Post subject: Data from thread to NSView, efficiently |
 |
|
I would just like to know if I'm going about this idea correctly. I have a
thread that's constantly passing back status and measurement data via DO
calls to my main process. The bigger the problem, the more data that gets
sent back, tens of thousands of loops easily.
The measurement data is just a few primitive types that, once they reach my
main controller in my apps parent process, I then pass into another controller (via [recv msg]'s) so that a graph view gets updated where I draw
the results in Quartz.
Where I'm questioning my process is ... there's just so many method calls.
In my child thread it's a continuous loop of calculations where data is
passed back to the main thread. That's a whole bunch of method calls ...
err, or messages to the receiver and I don't know if there's not a better
way in cocoa that I'm not aware of or how to tell if I'm overloading through
DO and not bottlenecking something along the way if there's really a lot of
overhead here.
It works, but it just doesn't seem right. Is there a better way, or is that
wrong? |
|
| |
|
|
|
 |
 |
 |
 |
 |
Stefan Arentz Guest
 |
Posted: Sun Jul 08, 2007 8:20 am Post subject: Re: Data from thread to NSView, efficiently |
 |
|
"Wizumwalt@gmail.com" <Wizumwalt@gmail.com> writes:
....
| Quote: |
| It works, but it just doesn't seem right. Is there a better way, or is that wrong? |
Why would you optimize something that works? Your question would make more sense if you actually had a problem. Like performance or responsiveness of the gui. But it sounds like all that is ok?
S. |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|