Library Overrides - investigate further performances issues. #54762

Closed
opened 2018-04-22 17:11:11 +02:00 by Bastien Montagne · 9 comments

Generating library override operation for a production character (like Autumn in Spring) implies going over and comparing several hundreds of thousands of RNA properties... No way to make this lightning fast, some ideas would be to try to remove (prune) paths that are not supposed to change ever... Not yet sure how to do this though, we already skip a good share of the whole RNA tree.

2a38b857f7 already tackled all low hanging fruits here, any further improvement will likely require deeper work for much less gain…

Generating library override operation for a production character (like Autumn in Spring) implies going over and comparing several hundreds of thousands of RNA properties... No way to make this lightning fast, some ideas would be to try to remove (prune) paths that are not supposed to change ever... Not yet sure how to do this though, we already skip a good share of the whole RNA tree. 2a38b857f7 already tackled all low hanging fruits here, any further improvement will likely require deeper work for much less gain…
Bastien Montagne self-assigned this 2018-04-22 17:11:11 +02:00
Author
Owner

Added subscribers: @mont29, @spockTheGray-4

Added subscribers: @mont29, @spockTheGray-4

Added subscriber: @Blazej-Floch

Added subscriber: @Blazej-Floch

First off thanks for all the work that has gone into the library overrides.

We tested them on our production rigs but find this very issue to be showstopping.

Just selecting any control results in a 4 seconds delay, 3 of which are the mentioned RNA property comparisons - the hottest path being string comparisons.
When we disable Undo the delay reduces to 1 second (evaluation of the rig only).

We are neither sure why the full rig is evaluated nor why a selection of a control would result in a Undo-step record. That's something we need to look into separately.
But the performance issue discussed here still stands.

Any suggestions on how to speed up the process?

First off thanks for all the work that has gone into the library overrides. We tested them on our production rigs but find this very issue to be showstopping. Just selecting any control results in a 4 seconds delay, 3 of which are the mentioned RNA property comparisons - the hottest path being string comparisons. When we disable Undo the delay reduces to 1 second (evaluation of the rig only). We are neither sure why the full rig is evaluated nor why a selection of a control would result in a Undo-step record. That's something we need to look into separately. But the performance issue discussed here still stands. Any suggestions on how to speed up the process?
Author
Owner

@Blazej-Floch thanks for testing and reporting!

Are you using latest master? Commit 2a38b857f7 should have made things already much, much better than the 2.81 release situation on that aspect. Though there should still be some more improvements possible here…

@Blazej-Floch thanks for testing and reporting! Are you using latest master? Commit 2a38b857f7 should have made things already much, much better than the 2.81 release situation on that aspect. Though there should still be some more improvements possible here…

Thanks for the quick reply. I was not aware of this change on master.

The override time is now reduced to ~500 ms! I'll pass a build on to our production for further testing.

Thanks a lot.

BTW: A debug definition was left in that commit ;)
https://developer.blender.org/diffusion/B/browse/master/source/blender/makesrna/intern/rna_access_compare_override.c$30

Thanks for the quick reply. I was not aware of this change on master. The override time is now reduced to ~500 ms! I'll pass a build on to our production for further testing. Thanks a lot. BTW: A debug definition was left in that commit ;) https://developer.blender.org/diffusion/B/browse/master/source/blender/makesrna/intern/rna_access_compare_override.c$30
Author
Owner

Arg, thanks for noting that debug print! xD

Arg, thanks for noting that debug print! xD
Bastien Montagne was unassigned by Dalai Felinto 2019-12-23 16:36:16 +01:00
Bastien Montagne self-assigned this 2020-01-16 09:20:01 +01:00
Bastien Montagne changed title from Static Overrides - investigate further performances issues. to Library Overrides - investigate further performances issues. 2020-01-16 09:24:03 +01:00
Author
Owner

The following commits made typical override handling of complex production character several times faster again:

The following commits made typical override handling of complex production character several times faster again: * d5954ef11c * 722adcfc48 * 44f7852660
Author
Owner

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author
Owner

Would consider this as done/solved for now as well.

Would consider this as done/solved for now as well.
Thomas Dinges added this to the 2.91 milestone 2023-02-08 16:21:50 +01:00
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#54762
No description provided.