Outliner Tree is rebuilt every time you scrub the timeline #114828
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#114828
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?
System Information
Operating system: Linux Mint
Graphics card: RTX 3070
Blender Version
Broken: latest main
Worked: didn't check yet
Short description of error
When scrubbing the timeline on heavy scenes the update rate is significantly slower than when playing back.
After profiling the scene it turns out that the outliner tree is rebuilt on every frame when scrubbing.
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
I ran the scene through a profiler to see what the exact issue is. That's how I found out that rebuilding the outliner tree is the difference/issue. That also means closing the outliner makes scrubbing faster.
Here's the flame graph for scrubbing the timeline
It may be, that rebuilding the tree is needed for some reason. But if possible we should really avoid doing it.
Can confirm, I'll check
It seems this is due to the
ND_FRAME
notifier inchange_frame_apply
andchange_frame_modal
Simple fix would be to remove
ND_FRAME
to avoid redraw inoutliner_main_region_listener
:I think the purpose of redraw is to update outliner when object visibility is animated (cc @JulianEisel ).
redrawing the outliner is fine, and we need that if e.g. the visibility is animated.
I am just wondering if we need to rebuild the whole tree for that
Redrawing the outliner on frame changes is definitely needed, not just for visibility changes, we also show animated properties in the Data API and library overrides display mode for example.
If there is no case where the tree actually changes on frame changes (like items added/removed or reordered), we can tag the region with
ED_region_tag_redraw_no_rebuild()
instead. Then the region would be redrawn but the tree not rebuilt.We used to rebuild the tree a lot, nowadays we try to be more careful since it can have a significant performance impact.
thanks, that makes sense. Off the top of my head I can't think of anything that would modify the scene during scrubbing but not playback, but I'll do some digging.