Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preprocessing stages should be handled by a single isolate #10

Open
brendan-duncan opened this issue Apr 25, 2014 · 0 comments
Open

preprocessing stages should be handled by a single isolate #10

brendan-duncan opened this issue Apr 25, 2014 · 0 comments

Comments

@brendan-duncan
Copy link
Owner

Preprocessing stages include:

  • Render tasks such as CreateProbesRenderer and SurfacePointsRenderer
  • Integrator and Material preprocess functions such as PhotonMapIntegrator and DipoleSubSurfaceMaterial

There currently isn't a way to have multiple isolates split up the work of these proprocessing stages. A single isolate should compute these and send the results as a resource to the controller isolate; other isolates should skip preprocessing, wait until those resources are ready, then continue rendering the image as is currently being done (by splitting the image and rendering a portion).

Alternatively, the isolate multi-processing model could be re-written to be more micro-task based.

As of now, using more than N isolates will have each isolate do preprocessing, a waist of CPU resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant