Geometry Node: Make Capture Attributes more lazy #105264
No reviewers
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#105264
Loading…
Reference in New Issue
No description provided.
Delete Branch "mod_moder/blender:more_lazynes_capture_attribute_node"
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?
The more complex node trees become, the more often they are decomposed.
With abundant use of both downloaded assets and simply nodes made long
ago, some data may be unused. Therefore, there are extra calculations.
But laziness is not yet widespread enough everywhere to solve the problems
of complex projects. This commit is solving the task: #102511.
The changes can be described as follows. Group all setpoints of value-used
facts into a single milestone. It is important.
Reason: Related values such as geometry and field are always returned
together. That is, in order to be correct, we must strive to ensure that
the information about whether values are needed will also always be together.
We can't query the geometry. After that say - we do not need a field.
This means that when the geometry is created, the field will be in the status: maybe.
And because of that, it will still be computed.
This solution only gives hope for a successful outcome, in cases where
many nodes want a result, situations can be more complicated and less
pleasant. But I don't see an easy solution, because basically we would
like to return the geometry without the attribute (source node still
work and contain pointer to reterned geometry). Let her check this and
say if the attribute is needed (and source node will compute and add
this attribute to geometry). Sounds weird?
So the change just groups the geometry and field request into one milestone.
A more general task may be presented later (with list of all nodes that can by more lazier).
Example:
Original Patch D17143
Geometry Node: Make Capture Attributes more lazinessto Geometry Node: Make Capture Attributes more lazyIf I understand correctly, the important part of the change is waiting to request the input field until after checking whether the output anonymous attribute is used. It would be good for the PR description to contain a high-level description of what's different like that.
Other than that, the code change looks correct to me.
@ -152,3 +155,3 @@
}
const std::string input_identifier = "Value" + identifier_suffix(data_type);
if (params.lazy_require_input(input_identifier) | params.lazy_require_input("Geometry")) {
Use
||
instead of|
A frequently used pattern to get both functions fired in one execution pass, and not just the first one with a true return
Ah, not sure I've noticed that before. Seems a bit hidden at first, but it makes sense. We'll see what Jacques thinks.
This seems to be used everywhere, for asking for multiple lazy inputs (in switch node for example).
@blender-bot build
Yes, a little later I will add a more material description of the changes
I hope the description does not suffer from the excessive complexity of the situation described there. It took me a long time to figure it out myself.
Also, the build bot seems to suffer from unrelated things.
Pull request closed