Performance: AnimationSystem - Action Evaluation Performance #78250
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#78250
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Current Implementation
Currently when evaluating an action the fcurves are evaluated one by one, and does not keep the previous state so it re-evaluates for every curve.
Idea
Typically fcurves are ordered (or where not could be ordered) that you are already near the RNA path of the previous evaluated fcurve. When using this concept we could remove rna path resolve partially or completely in most cases. This will reduce the 'steps' to evaluate rna paths, but also allows for optimizations on branching and caching.
#77124 ([WIP] Cache
RNA_path_resolve
in dependency graph) demonstrates that we can extract some essential bits from anRNA_path_resolve
and transfer it to other IDBlocks/types. The patch is limited as it still walks from the start of the IDBlock to the RNAProperty, what still contains overhead (memory creation, memcpy, hashing, etc)Phases of the implementation
Minimum implementation
- [ ] Phase 3: Find the shortest path from the last RNA resolved path to the next resolved rna path.
Future developments
Current implementation reduces performance as it reaches to multiple areas of blender in the internal loop. This reduces the branch prediction, d-cache and i-cache of the CPU. We could reduce the inner loop and needed branches to perform the animsys update in multiple phases. Some part of the code is currently done twice (during read and write)
Depsgraph Build time
calculate evaluation instructions to process these curves.
Depsgraph Evaluation time
go over the value->property list and perform the updates.
notes
The above is focussed on bActions of the AnimSystem. Drivers seems to be evaluated one by one, we should see if we can group them together based on the target.
Still need to look into the overhead of fcurves in the NlaStrip. (id is the object so it could also benefit from the above.).
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @Jeroen-Bakker
[WIP] Performance: AnimationSystem - Action Evaluation Performanceto Performance: AnimationSystem - Action Evaluation PerformanceAdded subscriber: @RedMser