Geometry Nodes: Performance regression and node tree evaluation difference #93969

Closed
opened 2021-12-11 18:22:13 +01:00 by RoyTheKoi · 5 comments

System Information
Operating system: macOS Big Sur 11.2.3
CPU: 2.3 GHz 8-Core Intel Core i9
Graphics card: AMD Radeon Pro 5500M 8 GB

Blender Version
Broken: 3.1 Alpha, 7b88a4a3ba, master, 2021-11-12
Worked: 3.1 Alpha, dffd032bc9, master, 2021-10-12

Short description of error
Evaluating the geometry node tree in the attached blend file is significantly slower in the Dec 11 build versus the Dec 10 build of 3.1 Alpha. The part of the tree that seems to account for the slowdown (mesh to curve and curve to mesh) is about 16-20x slower.
Dec_10_normal.png Dec_11_slowdown_and_evaluation_difference.png
Not only is there a slow down, but some change in evaluation has meant that the output colour attribute is calculated differently as shown above. Adding an extra capture attribute node in the node group resolves this difference: Notice how the colours of the grid in the first (Dec 10) and third (Dec 11) screenshots match. Unfortunately adding this node this further impacts performance.
Dec_11_difference_resolved_but_further_slowdown.png
I'm not sure yet whether the evaluation difference is a regression, since it doesn't necessarily cause a negative effect here. All I know is that there is a definite difference between how Dec 10 and Dec 11 evaluates the same tree. The main issue is the significant slowdown.

Exact steps for others to reproduce the error
Geometry_Nodes_Slowdown.blend

  1. Open the attached blend file in 3.1 Alpha Dec 10 and Dec 11 builds. The Dec 11 build evaluates much slower.
  2. Also try muting the marked attribute capture node inside the node group --> this should cause a difference in the colours of the grid in the Dec 11 build, but have no effect in the Dec 10 build.

I have yet to pinpoint the exact cause for the slowdown so I'm unable to provide a simpler blend file or better steps to reproduce the issue at the moment.

**System Information** Operating system: macOS Big Sur 11.2.3 CPU: 2.3 GHz 8-Core Intel Core i9 Graphics card: AMD Radeon Pro 5500M 8 GB **Blender Version** Broken: 3.1 Alpha, 7b88a4a3ba7e, master, 2021-11-12 Worked: 3.1 Alpha, dffd032bc9b9, master, 2021-10-12 **Short description of error** Evaluating the geometry node tree in the attached blend file is significantly slower in the Dec 11 build versus the Dec 10 build of 3.1 Alpha. The part of the tree that seems to account for the slowdown (mesh to curve and curve to mesh) is about 16-20x slower. ![Dec_10_normal.png](https://archive.blender.org/developer/F12731027/Dec_10_normal.png) ![Dec_11_slowdown_and_evaluation_difference.png](https://archive.blender.org/developer/F12731038/Dec_11_slowdown_and_evaluation_difference.png) Not only is there a slow down, but some change in evaluation has meant that the output colour attribute is calculated differently as shown above. Adding an extra capture attribute node in the node group resolves this difference: Notice how the colours of the grid in the first (Dec 10) and third (Dec 11) screenshots match. Unfortunately adding this node this further impacts performance. ![Dec_11_difference_resolved_but_further_slowdown.png](https://archive.blender.org/developer/F12731053/Dec_11_difference_resolved_but_further_slowdown.png) I'm not sure yet whether the evaluation difference is a regression, since it doesn't necessarily cause a negative effect here. All I know is that there is a definite difference between how Dec 10 and Dec 11 evaluates the same tree. The main issue is the significant slowdown. **Exact steps for others to reproduce the error** [Geometry_Nodes_Slowdown.blend](https://archive.blender.org/developer/F12731089/Geometry_Nodes_Slowdown.blend) 1. Open the attached blend file in 3.1 Alpha Dec 10 and Dec 11 builds. The Dec 11 build evaluates much slower. 2. Also try muting the marked attribute capture node inside the node group --> this should cause a difference in the colours of the grid in the Dec 11 build, but have no effect in the Dec 10 build. I have yet to pinpoint the exact cause for the slowdown so I'm unable to provide a simpler blend file or better steps to reproduce the issue at the moment.
Author

Added subscriber: @RoyTheKoi

Added subscriber: @RoyTheKoi
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey self-assigned this 2021-12-13 22:50:02 +01:00
Member

Thanks for the report! Bisecting this (thanks for the small range of broken to working!) looks like it has been fixed by 8ba6302696

Thanks for the report! Bisecting this (thanks for the small range of broken to working!) looks like it has been fixed by 8ba6302696
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
2 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#93969
No description provided.