Library Override Resync Performance #94059
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#94059
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Production files (that require no resync) take a long time to load when "Override Auto Resync" is enabled.
Blender: 3.0
File:
Load time:
4b21067aea
)Profiling:
{F12739213, size=full}
Findings:
LISTBASE_FOREACH
loop).Worthy noting:
Note: profiling by @brecht , findings by @brecht and @jbakker.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @dfelinto
Added subscribers: @Jeroen-Bakker, @brecht
Added subscriber: @mont29
GHash caching of calls to
BKE_collection_object_find
has been implemented in0624fad0f3
For me, opening that file goes from
to...
NOTE: This file and its dependencies remain fairly 'dirty', it exhibits several cases of multi-driver-variables-with-same-name (#94116), and also several cases of characters 'exploded' out of their root collection (for some they do not even have the root collection override anymore!), those issues cause the extra unneeded resyncs at startup.
Follow up: Getting completely rid of
BKE_collection_object_find
in197b3502b0
allows to gain a bit more, for me values on this file are now:Updated flame graph showing that performance is shifting to resync.
{F12756833,size=full}
I don't know the full context here, but would it be possible for resync to keep datablocks in the same memory location (like undo), and avoid remapping? I would expect that most of the time resync does not actually need to change most datablocks and their relations, that usually in e.g. a rig nothing changes or a few objects are added/removed.
For the records, the file takes now 4 minutes on my computer.
@dfelinto 4 minutes seems to be much slower as the 110s it took when creating the flame graph. I used a RelWithDebInfo, where the files where checked out locally on primary M2 (Ryzen3800).
Added subscriber: @Garek
@brecht In theory this should be possible yes... However, this would add another layer of complexity to this area. Given the current complexity of the resync code, I have refrained from implementing this so far.
Think we should first iron it out fully, and implement missing bits (like support for partial resync, for relationships between different liboverride hierarchies, etc.), before adding this extra layer of complexity (if it still makes sense to have it - performances of liboverride resync should be much less critical than those of undo system, since it only happens once on file load, in the worst case, and should not happen at all in most cases).
Added subscriber: @RedMser
Added subscriber: @Raimund58
Added subscriber: @TodorNikolov
Added subscriber: @GalacticSalmon
Removed subscriber: @GalacticSalmon
Added subscriber: @satishgoda1
Changed status from 'Confirmed' to: 'Resolved'
Think we can consider this as addressed now.