Regression: Setting node socket default_value is significantly slower in Blender 3.1.2 #98501

Closed
opened 2022-05-30 17:21:50 +02:00 by Roman Markov · 8 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: GeForce GTX 760M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 425.31

Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: cc66d1020c
Worked: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: 1b8d33b18c

This issue here is also caused by 7e712b2d6a, same as #97375 (Regression: Creating material node links in python is VERY slow in v3.1).

Short description of error
Setting bpy.data.node_groups["NodeGroup"].inputs- [x].default_value is 29 times slower in 3.1.2 comparing to 2.93.1. It depends on a number of bpy.types.NodeGroupInput present. With a tree with only NodeGroupInput nodes the difference is more than 200 times.

Exact steps for others to reproduce the error
Open the file and run the test script.
set_default_value_timeit.blend

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: GeForce GTX 760M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 425.31 **Blender Version** Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: `cc66d1020c` Worked: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: `1b8d33b18c` This issue here is also caused by 7e712b2d6a, same as #97375 (Regression: Creating material node links in python is VERY slow in v3.1). **Short description of error** Setting `bpy.data.node_groups["NodeGroup"].inputs- [x].default_value` is 29 times slower in 3.1.2 comparing to 2.93.1. It depends on a number of `bpy.types.NodeGroupInput` present. With a tree with only `NodeGroupInput` nodes the difference is more than 200 times. **Exact steps for others to reproduce the error** Open the file and run the test script. [set_default_value_timeit.blend](https://archive.blender.org/developer/F13123166/set_default_value_timeit.blend)
Author

Added subscriber: @unwave

Added subscriber: @unwave
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Can confirm, will check

Can confirm, will check
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

This issue here is also caused by 7e712b2d6a, same as #97375 (Regression: Creating material node links in python is VERY slow in v3.1).
Unfortunately, the fix for #97375 (54b293237e) does not improve things here.

@JacquesLucke: do you think there is room for improvement in this case also?

This issue here is also caused by 7e712b2d6a, same as #97375 (Regression: Creating material node links in python is VERY slow in v3.1). Unfortunately, the fix for #97375 (54b293237e) does not improve things here. @JacquesLucke: do you think there is room for improvement in this case also?
Philipp Oeser changed title from Setting node socket default_value is significantly slower in Blender 3.1.2 to Regression: Setting node socket default_value is significantly slower in Blender 3.1.2 2022-05-31 15:16:29 +02:00
Jacques Lucke self-assigned this 2022-05-31 19:18:05 +02:00

This issue was referenced by 0f47506cde

This issue was referenced by 0f47506cde50c4542a0a3c7863b0fb4e735bf8f0
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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#98501
No description provided.