Worse render result with Russian Roulette Termination #52313
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#52313
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using Russian Roulette sometimes results noticeably more noise (build
6af7d7e
) than regular probabilistic termination in Blender 2.79 RC1 with the same render time.6af7d7e
(512 SPP, 54.05 s)6af7d7e
equal time (670 SPP, 69.59 s)Max and min samples were set to 8 and 4 respectively in RC1.
monument5 279rr.blend
A second scene tested with build
4d428d1
exhibits the same results.4d428d1
(256SPP, 24.13s)4d428d1
equal time (380SPP, 35.28s)TESTmonument3-RR.blend
Changed status to: 'Open'
Added subscriber: @pixelgrapher
Added subscribers: @brecht, @Sergey
@brecht, think solution here could be to use curve with a bit "steeper" tangent when close to 0. Experimented a bit with
sqrtf(sqrtf(max_throughput))
andcolor_scene_linear_to_srgb(max_throughput)
. This scene seems to behave better. Think we can use some simplified version of sRGB-like curve, maybepow(max_throughput, 1.0 / 3.0)
.Optimizing the curve for this scene is going to make it worse in others. I'll do some tests with other exponents as suggested, but importance sampling will always make some scenes worse so it's a matter of figuring out what works best on average, and some scenes will inevitably be worse.
In this specific scene, the image converges poorly due to caustics, which can be solved by setting Filter Glossy to 1. Without that, more samples actually make the image more noisy in some ways, because more fireflies start appearing.
Note that the optimal choice may also be different once we have adaptive sampling, since that gives you more leeway to risk noise in some areas of the image if it speeds up other bigger areas a lot.
I'm not sure if that's an excuse on current termination or not. If so, then it just doesn't sound right. We should not leave users with a more noisy renders just because somewhere in the future we might possibly have adaptive sampling. If we add adaptive sampling, then we can re-tweak termination criteria to what works best with it. Don't see anything wrong or bad with that.
I'm not saying the suggested changes are the way to go, just saying there is room for possible improvements, but surely more investigation needed.
P.S. While we are on this piece of code again, it feels like name
path_state_terminate_probability()
is inverted. It's more likepath_state_keep_ray_active_probability()
. It is confusing that terminate probability of 1.0 doesn't terminate, but keeps ray active.Not saying that we should tweak it for adaptive sampling now, just mentioning it as something to keep an eye on.
I think the standard term would be "continuation probability".
Changed status from 'Open' to: 'Archived'
I did a lot of tests here with different powers and formulas, and didn't find anything that seems clearly better overall than what we have now. If we gradually make termination more conservative, noise in this scene goes down gradually but render time in other benchmark scenes goes up gradually too. There does not appear to be any magic point that gets us the best of both worlds. For now I'll just consider this a trade-off we do to make rendering scenes faster on average, even if it's worse for some scenes. I also suggest to just use filter glossy, which is enabled by default now, to get rid of the main source of noise in this scene.
Is it possible to offer both the original and new termination methods available for the artist to optimise at their own discretion?
We could, but it's something we should avoid unless absolutely required. There's dozens such sampling strategies that we could make configurable. In practice doing that often makes it harder to control noise as trying out all the combinations is too much work for users anyway, and too much work for us developers to ensure they all the combinations work well together or even measure the impact of sampling changes.
Added subscriber: @YAFU
I think using SSS I am getting different result between 2.79 release and master:
2.79:
Master:
Scene:
test_sss.blend
From master there seems to be some more noise, but also lighting and reflections change. Filter Glossy=1 does not seem to change things much.
Just mentioning this here in case there is something wrong with it, mainly in lighting and reflections.
Added subscriber: @SteffenD