Sparsed render pass #49225

Closed
opened 2016-09-01 18:02:08 +02:00 by Ilia · 7 comments

I still can't use OpenCL by some magic reason https://developer.blender.org/T48880 but I need cycles to work faster. I have done little improvement ( bpatch.diff - it can be applied at least at 96dd1943af ) but now it is more proof of concept - works only with cpu render and not in batch mode (some code placed into BlenderSession::do_write_update_render_result because it have code retrieving render result for tile)
The main idea is to skip pixels which not changed since last pass more than some value (currently it about 1% from sum of both last and current values). But each N pass (currently 8) render as usual (this amnesty-like step may be not needed, but I'm in doubt).

I still can't use OpenCL by some magic reason https://developer.blender.org/T48880 but I need cycles to work faster. I have done little improvement ( [bpatch.diff](https://archive.blender.org/developer/F349799/bpatch.diff) - it can be applied at least at 96dd1943afc4f08e4befb44602a3c621a446c678 ) but now it is more proof of concept - works only with cpu render and not in batch mode (some code placed into BlenderSession::do_write_update_render_result because it have code retrieving render result for tile) The main idea is to skip pixels which not changed since last pass more than some value (currently it about 1% from sum of both last and current values). But each N pass (currently 8) render as usual (this amnesty-like step may be not needed, but I'm in doubt).
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @inferrna

Added subscriber: @inferrna
Member

Added subscribers: @Sergey, @brecht

Added subscribers: @Sergey, @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2016-09-02 18:22:40 +02:00

There was more sophisticated approach tested by Lukas in D808.

And now when there's a good progress with denoiser it means we can do smarter decisions where we can denoise and where we need to throw more samples.

It's good to see interest in such features, but current approach is this particular patch isn't really a proper one.

There was more sophisticated approach tested by Lukas in [D808](https://archive.blender.org/developer/D808). And now when there's a good progress with denoiser it means we can do smarter decisions where we can denoise and where we need to throw more samples. It's good to see interest in such features, but current approach is this particular patch isn't really a proper one.
Author

bpatch.diff - new version of the patch - now with flexible options in interface
willys.orig.png - render with same total sampleswidthheight (calculated by subtract skipped pixels) as in patched result (330 samples)
willys.orig.l.png - render using same time as with patched version (about 40 minutes on my pc, 360 samples)
willys.sp.no_alpha.png - patched render, maximum 500 samples, ~40 minutes on my pc

current problems:

  1. it works bad with alpha channel even in cases where alpha is flat zero when render is unpatched.
  2. it still need visualization pass, so it doesn't working in batch mode and with progressive refine enabled.

And now when there's a good progress with denoiser it means we can do smarter decisions where we can denoise and where we need to throw more samples.

is it already in mainline or in some separate branch? Currently my result looks little smoother even for a same time renders.

[bpatch.diff](https://archive.blender.org/developer/F361255/bpatch.diff) - new version of the patch - now with flexible options in interface ![willys.orig.png](https://archive.blender.org/developer/F361257/willys.orig.png) - render with same total samples*width*height (calculated by subtract skipped pixels) as in patched result (330 samples) ![willys.orig.l.png](https://archive.blender.org/developer/F361259/willys.orig.l.png) - render using same time as with patched version (about 40 minutes on my pc, 360 samples) ![willys.sp.no_alpha.png](https://archive.blender.org/developer/F361262/willys.sp.no_alpha.png) - patched render, maximum 500 samples, ~40 minutes on my pc current problems: 1. it works bad with alpha channel even in cases where alpha is flat zero when render is unpatched. 2. it still need visualization pass, so it doesn't working in batch mode and with progressive refine enabled. > And now when there's a good progress with denoiser it means we can do smarter decisions where we can denoise and where we need to throw more samples. is it already in mainline or in some separate branch? Currently my result looks little smoother even for a same time renders.

The denoiser is in the soc-2016-cycles_denoising branch , there is no code for adaptive sampling based on it currently.

To make adaptive sampling robust is a very hard problem, and we would be unlikely to accept an intermediate solution that gives only marginal improvement and doesn't work together with the denoiser.

The denoiser is in the [soc-2016-cycles_denoising branch ](https://developer.blender.org/diffusion/B/history/soc-2016-cycles_denoising/), there is no code for adaptive sampling based on it currently. To make adaptive sampling robust is a very hard problem, and we would be unlikely to accept an intermediate solution that gives only marginal improvement and doesn't work together with the denoiser.
Sign in to join this conversation.
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
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#49225
No description provided.