Poor performance in Timeline, Dope Sheet, etc when at the top of the editor. #78995
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#78995
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-5.3.0-7648-generic-x86_64-with-Ubuntu-19.10-eoan 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100
Blender Version
Broken: version: 2.79, 2.83, 2.90.0 Alpha, branch: master, commit date: 2020-07-16 14:09, hash:
f64710a518
Worked: unknown, possibly never.
Short description of error
Seems like some animation files cause really poor performance in Dope sheet when trying to scroll on top of it. Scrolling down and making the top section not visible seems to fix the performance.
I presume the editors draw keyframes for channels on top of each other without checking if the key already exists.
2020-07-16 17-54-48.mp4
Exact steps for others to reproduce the error
slow.blend
Added subscriber: @Likkez-2
#85270 was marked as duplicate of this issue
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Confirmed'
I guess it would be nice to make this faster, this doesn't necessarily look like hard to do, and it will be quite useful so I will confirm.
Since this is performance issue that doesn't look very critical we may not consider it to be a bug.
Added subscriber: @dr.sybren
Changed status from 'Confirmed' to: 'Needs User Info'
@Likkez-2 Please do some testing with older versions of Blender. This will tell us whether it's a regression problem, or whether this performance issue has "always" been in Blender.
Alright, Ive tested on 2.83 and 2.7. The issue seems to always be there but its even worse on those versions since it slows down the viewport together with the dope sheet editor.
2.83:
2020-07-17 13-47-55.mp4
2.7:
2020-07-17 13-57-39.mp4
Added subscriber: @bent
@bent 2.7 is not a version of Blender. I think I can just make out the 2.79 in the title bar.
@Jeroen-Bakker could you take a look at this?
Added subscriber: @Jeroen-Bakker
Changed status from 'Needs User Info' to: 'Confirmed'
@dr.sybren My bad. Yes, its 2.79
During my research the curves are converted to samples and back again to find out how to draw the bars. This takes most of the time this is done via the
anim_filter.c
For animation playback performance we changed this behavior to not happen when only the scene time changes. but we didn't tackle this for editing/working with the editor.Of course there are many ways how to deal with such a problem:
@Jeroen-Bakker But how come it lags so much more at the top of the editor? Does it have to convert every single curve there is to draw the top dope sheet keys?
Could be related to the Summary. The summary reflects all filtered curves and can have a lot of data. Not 100% sure as I didn't profiled this intensively.
I'll assume that this also happens when you're not researching ;-)
For someone not that familiar with UI drawing code: what are "the bars"?
Changed status from 'Confirmed' to: 'Needs User Info'
@Likkez-2 could you test this with older versions of Blender to see if this is an issue that was recently introduced, or has been in Blender for longer?
@dr.sybren Yes, I've already done tests in blender 2.83, 2.79 in the reply above. The lag is present in both of these versions. Is there some more specific version you want me to test?
Changed status from 'Needs User Info' to: 'Confirmed'
I don't know when someone will have the time to look into this, so I'll mark this as Known Issue for now.
The image above shows the bottle neck.
This is a nice task for a rainy day :-) Isn't this an issue that the blender animation studio has?
An idea is to use list merge. This would remove searching bottleneck. The challenge is that is a different data structure than we currently have, but other parts of blender depends on the existing data structure (pose slide tool for example). In order to optimize the drawing code we should define a better API or use CPP so we don't duplicate logic.
We should also move the _to_keylist code to its own compile unit as it isn't only used for drawing.
This issue was referenced by
6f50969406
This issue was referenced by
60cfdf0809
This issue was referenced by
7f1fe10595
Added subscribers: @toxsickcity, @LucianoMunoz, @ankitm, @mano-wii
this has again been improved in 4.1 with f06fd85d970f: Anim: Restrict range of fcurve_to_keylist
Comparing the file in 2.93 and 4.1 the performance has improved a lot.
I am still not closing this because there can be done more to improve performance by not recalculating the keylists on every redraw.