Re: Dealing with Very Slow NSViews
Re: Dealing with Very Slow NSViews
- Subject: Re: Dealing with Very Slow NSViews
- From: John Nairn <email@hidden>
- Date: Mon, 09 Sep 2002 11:53:06 -0600
On Monday, September 9, 2002, at 08:41 AM,
email@hidden wrote:
You could set a timer in the slider action and only do the recalc when
the timer expires.
As a more sophisticated extension of this idea, you could do what I've
seen done in a scientific visualization application - have your
calculation & display be parametrized so that you do a very fast &
rough
calculation at first (when the slider changes) but then recalculate &
redisplay with more precision once the slider has stopped.
Also consider moving the calculation off to another thread. This is the
approach taken in the Building Cocoa Applications book for their little
graphing app. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
Actually the calculation is already done as was done in a separate
task. That calculation took 10 hours and some calculations from the
same project could take several days. Here I am talking just about
plotting the results which does not involve any more calculations but
just "stroking" the pre-calculated Bezier Curves. In brief it is a
dynamic, solid mechanics problem which uses finite elements and 4
particles per element. This particular result had 20000 elements and
about 60000 particles (not all elements have particles). Depending on
what features of the solution get plotted there can be anywhere for
60000 to over 200000 Bezier Curves to draw.
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.