My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 24: Adjust parallel mode work amount according to depth/cost
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ejrh00@gmail.com
Closed:  May 2012


 
Project Member Reported by ejrh00@gmail.com, Nov 17, 2011
Parallel mode will refresh frequently for low depth, but agonisingly slowly for high depth.  Because it does the same number of pixels in each, even thought latter case could require 256 times as much work per pixel.

It decides on the number of frames to draw, and draws total_pixels/num_frames each time.

We want it adjust num_frames at the start in a way that makes refreshing even.  Two ways spring to mind:

  * Look at the current depth, and make a guess.  Of course, the depth doesn't tell you how much of the view will contain black pixels.  The view could be 99% outside the set with pixels at much lower cost than the maximum.

  * Try a few pixels, and measure how long it took to do them.

I favour the second approach.  The thing is it's probably going to be hard to do without wasting those few pixels.

May 8, 2012
Project Member #1 ejrh00@gmail.com
Perhaps the way to do it is:

  1. Use a very high number of "frames" (appropriate to the highest level of depth.
  2. Do the first frame.
  3. Based on the time to complete it, do multiple frames for each refresh.

May 11, 2012
Project Member #2 ejrh00@gmail.com
This issue was closed by revision r238.
Status: Fixed

Powered by Google Project Hosting