Timeline Performance Patch #8177

Closed
opened 2008-01-29 05:46:34 +01:00 by Adriano Macchietto · 4 comments

%%%This patch addresses poor performance when dealing with a large number of keyframes (e.g. a typical mocap clip). It does this in one of two ways.

First, it makes the creation of the timeline keyframe drawlist O(n) instead of O(n^2) as before. In the existing code there was a linear duplicate keyframe check each time a keyframe was added resulting in O(n^2) time complexity to fill the draw list. A new function was added to remove this duplicity check creating a substantial speedup.

Secondly, instead of calling a glBegin/glEnd pair for each keyframe drawn, only one pair is used to draw all keyframes in the list. This should also result in a drawing speedup.

You can see the changes by importing the largest BVH file in the set and playing around with the timeline. It should move prohibitively slow in the unpatched version.

http://truebones.com/freedemo/FreeBones.zip%%%

%%%This patch addresses poor performance when dealing with a large number of keyframes (e.g. a typical mocap clip). It does this in one of two ways. First, it makes the creation of the timeline keyframe drawlist O(n) instead of O(n^2) as before. In the existing code there was a linear duplicate keyframe check each time a keyframe was added resulting in O(n^2) time complexity to fill the draw list. A new function was added to remove this duplicity check creating a substantial speedup. Secondly, instead of calling a glBegin/glEnd pair for each keyframe drawn, only one pair is used to draw all keyframes in the list. This should also result in a drawing speedup. You can see the changes by importing the largest BVH file in the set and playing around with the timeline. It should move prohibitively slow in the unpatched version. http://truebones.com/freedemo/FreeBones.zip%%%

Changed status to: 'Open'

Changed status to: 'Open'
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Added subscriber: @EnzioProbst

Added subscriber: @EnzioProbst

Hi I wanted to doublecheck if this patch made it to master, as i am encountering bad Timeline performance for the second time now.

I am using blender 2.79b on windows and imported a .bvh file with more than 10000 keyframes. When closing the timeline or deselecting all bones, so keyframes aren't displayed, it plays back in realtime. Even with 60 fps.
But when having the timeline open and all bones selected i am always below 10-20 fps depending on the length of the animation.

I checked the exact same thing in blender 2.49.2 and even with all keyframes visible in the timeline it plays back fluently with 60fps.

Also checked the same file in blender 2.80 Alpha 2 where the performance with timeline open is even worse, with under 15fps.

Hi I wanted to doublecheck if this patch made it to master, as i am encountering bad Timeline performance for the second time now. I am using blender 2.79b on windows and imported a .bvh file with more than 10000 keyframes. When closing the timeline or deselecting all bones, so keyframes aren't displayed, it plays back in realtime. Even with 60 fps. But when having the timeline open and all bones selected i am always below 10-20 fps depending on the length of the animation. I checked the exact same thing in blender 2.49.2 and even with all keyframes visible in the timeline it plays back fluently with 60fps. Also checked the same file in blender 2.80 Alpha 2 where the performance with timeline open is even worse, with under 15fps.
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
3 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#8177
No description provided.