Blender now freezes when long (loop-like) geometry nodes chains are evaluated #93845

Closed
opened 2021-12-08 02:12:09 +01:00 by Tom Benedett · 7 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1080ti

Blender Version
Broken: Blender 3.1, aa440923c8, 2021-11-09 and Blender 3.00 release, f1cca30557, 2021-12-07
Worked: Blender 3.00, 231d66d8ba, master, 2021-10-23

Short description of error
Long chains of math nodes in geometry nodes (specifically discovered in Newton's method numerical solves) that ran speedily in Blender versions up through at least mid-October now require compute time that feels exponential(!) with the number of iterations.

Exact steps for others to reproduce the error
Probably best to try the attached .blend rather than attempt to implement a Newton's method problem yourself.
In the file are four versions of the same geometry nodes parametric-equation solver, differing only in the number of Newton's method iterations. All four of them currently have their "Geometry Nodes" modifiers disabled in the viewport; enable them, one-at-a-time, in ascending order of iteration count (given in the objects' names and their respective nodetree names) and take note of the time it takes to evaluate them.

On my system, with the Oct. 23rd version, the 32-iteration case takes no more than two seconds to evaluate, and all the others are at least as fast.
With the later versions, the 3-iteration case takes less than a second, the 4-iteration case takes about four seconds, and the 8-iteration case freezes blender for at least five minutes (and the 32 iteration case is even worse.)
Parametric Heart - Newton's Method - 3.00 - 2021-12-07.blend

**System Information** Operating system: Windows 10 Graphics card: GTX 1080ti **Blender Version** Broken: Blender 3.1, aa440923c8a3, 2021-11-09 and Blender 3.00 release, f1cca3055776, 2021-12-07 Worked: Blender 3.00, 231d66d8ba35, master, 2021-10-23 **Short description of error** Long chains of math nodes in geometry nodes (specifically discovered in Newton's method numerical solves) that ran speedily in Blender versions up through at least mid-October now require compute time that feels exponential(!) with the number of iterations. **Exact steps for others to reproduce the error** Probably best to try the attached .blend rather than attempt to implement a Newton's method problem yourself. In the file are four versions of the same geometry nodes parametric-equation solver, differing only in the number of Newton's method iterations. All four of them currently have their "Geometry Nodes" modifiers disabled in the viewport; enable them, one-at-a-time, in ascending order of iteration count (given in the objects' names and their respective nodetree names) and take note of the time it takes to evaluate them. On my system, with the Oct. 23rd version, the 32-iteration case takes no more than two seconds to evaluate, and all the others are at least as fast. With the later versions, the 3-iteration case takes less than a second, the 4-iteration case takes about four seconds, and the 8-iteration case freezes blender for at least five minutes (and the 32 iteration case is even worse.) [Parametric Heart - Newton's Method - 3.00 - 2021-12-07.blend](https://archive.blender.org/developer/F12706970/Parametric_Heart_-_Newton_s_Method_-_3.00_-_2021-12-07.blend)
Author

Added subscriber: @moak

Added subscriber: @moak
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
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-14 00:55:02 +01:00
Member

Could you check the latest build? Jacques has done some great performance improvements lately, that will help this case, particularly 7b88a4a3ba.

On my Ryzen 3700x, the whole node setup executed in about 350ms.

I'm going to close this as resolved, since I'm fairly certain it should be solved, but if it isn't we can reopen this report. Thanks!

Could you check the latest build? Jacques has done some great performance improvements lately, that will help this case, particularly 7b88a4a3ba. On my Ryzen 3700x, the whole node setup executed in about 350ms. I'm going to close this as resolved, since I'm fairly certain it should be solved, but if it isn't we can reopen this report. Thanks!
Author

Yes, that solves it! It indeed runs speedily as before, even on a significantly less powerful machine than I was testing on before.

Excellent; thank you very much!

Yes, that solves it! It indeed runs speedily as before, even on a significantly less powerful machine than I was testing on before. Excellent; thank you very much!
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
3 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#93845
No description provided.