Nodes: Update of nodes topology cache more parallel #107686

Open
Iliya Katushenock wants to merge 8 commits from mod_moder/blender:tmp_more_parallel_node_topology_cache into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Topology cache updating can be split in parts:

  1. Cache, based only on a dna data from node tree.
  2. Cache, based on other cache.

This mean, first type of cache have to be updated previously than last one.
Like last type, first one is internally independent and can be parallel.

This pull request change some implementations of function of first type
of cache to make it independent of cache, but only for dna data.

Some approximate figures for improvement (for 65 nodes ~) 56167 ns -> 36067 ns.

Results of editing ETK_Sort Attribute node group in attached file (Created by Erindale).
I just open this node tree and edit something in this, add node, connect something, parent to frame, ...

Topology cache updating can be split in parts: 1. Cache, based only on a dna data from node tree. 2. Cache, based on other cache. This mean, first type of cache have to be updated previously than last one. Like last type, first one is internally independent and can be parallel. This pull request change some implementations of function of first type of cache to make it independent of cache, but only for dna data. Some approximate figures for improvement (for 65 nodes ~) 56167 ns -> 36067 ns. Results of editing `ETK_Sort Attribute` node group in attached file (Created by Erindale). _I just open this node tree and edit something in this, add node, connect something, parent to frame, ..._
Iliya Katushenock added 1 commit 2023-05-06 19:26:53 +02:00
Iliya Katushenock added this to the Nodes & Physics project 2023-05-06 19:27:06 +02:00
Iliya Katushenock requested review from Hans Goudey 2023-05-06 19:27:21 +02:00
Iliya Katushenock added 1 commit 2023-05-06 19:44:33 +02:00
Iliya Katushenock changed title from Nodes: More parallel topology cache update for nodes to Nodes: More parallel topology cache updating for nodes 2023-05-06 23:06:05 +02:00
Iliya Katushenock changed title from Nodes: More parallel topology cache updating for nodes to Nodes: Update of nodes topology cache more parallel 2023-05-06 23:07:40 +02:00
Iliya Katushenock added 1 commit 2023-05-06 23:12:02 +02:00
Member

Seems reasonable to me! Some absolute performance numbers (i.e. in milliseconds would be nice too).
It's mostly guesswork I suppose, but a cutoff a bit higher than 32 might be good, there's not too much work happening here. Maybe 64 or 128?

Seems reasonable to me! Some absolute performance numbers (i.e. in milliseconds would be nice too). It's mostly guesswork I suppose, but a cutoff a bit higher than 32 might be good, there's not _too_ much work happening here. Maybe 64 or 128?
Iliya Katushenock added 1 commit 2023-05-07 01:48:19 +02:00
Iliya Katushenock added 1 commit 2023-05-19 19:37:01 +02:00
Iliya Katushenock added 3 commits 2023-06-24 19:25:58 +02:00
Hans Goudey reviewed 2024-01-30 04:46:18 +01:00
Hans Goudey left a comment
Member

I guess this doesn't seem worth the downside of using the linked list macros more too me. Even if it's slightly more parallel, it's not expensive code. I don't have a strong opinion, but yeah, to me it doesn't feel so worth it.

I guess this doesn't seem worth the downside of using the linked list macros more too me. Even if it's slightly more parallel, it's not expensive code. I don't have a strong opinion, but yeah, to me it doesn't feel so worth it.
This pull request has changes conflicting with the target branch.
  • source/blender/blenkernel/intern/node_runtime.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u tmp_more_parallel_node_topology_cache:mod_moder-tmp_more_parallel_node_topology_cache
git checkout mod_moder-tmp_more_parallel_node_topology_cache
Sign in to join this conversation.
No reviewers
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 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#107686
No description provided.