Blender Git Loki
Git Commits -> Revision 7744203
Revision 7744203 by Sybren A. Stüvel (master) January 30, 2019, 09:51 (GMT) |
Cycles: improved rounding of sample chunks for resumable renders When using `--cycles-resumable-num-chunks N` to render a subset of the samples, having N close to the total number of samples causes rounding issues. For example, a file configured for 250 samples and 150 chunks should have 1.6666 sample per chunk. The old code rounded this to 2 samples per chunk, which would result in too many samples being rendered. When rendering a single chunk this doesn't matter much, but when larger chunk ranges are rendered with `--cycles-resumable-start-chunk` and `--cycles-resumable-end-chunk` the rounding errors start to add up. By multiplying with the number of chunks to render first, and only round to integers after that, this issue is solved. In the above example, rendering 3 chunks will correctly render 5 samples rather than 6. When the requested number of chunks is larger than the number of samples there will be duplicate samples (that is, sample N appearing both in chunk M and M+1). In this case a warning is printed to stderr. This is needed for T50977 Progressive render: use non-uniform sample chunks. Reviewed by: sergey Differential Revision: https://developer.blender.org/D4282 |
Commit Details:
Full Hash: 7744203b7fde35a074faf232dda3595b78c5f14c
Parent Commit: fbfe360
Lines Changed: +20, -7
1 Modified Path:
/intern/cycles/blender/blender_session.cpp (+20, -7) (Diff)