gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.34k stars 133 forks source link

Test WebGLPathTracer extreme case timing #583

Closed gkjohnson closed 6 months ago

gkjohnson commented 6 months ago

See if updating materials, lights, etc are taking too long. Cache the state if possible to avoid unnecessary updates. Possibly add options for disabling / enabling only certain options.

gkjohnson commented 6 months ago

Render targets will have to be always updated since we can't tell if they're changed or not.

gkjohnson commented 6 months ago

Remaining:

Save the buffer state for lights and materials and compare before returning the result.