Graph editor extrapolation make cyclic very slow #63656

Closed
opened 2019-04-16 10:52:57 +02:00 by Benoit Alexis · 9 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.43

Blender Version
Broken: version: 2.80 (sub 57), branch: master, commit date: 2019-04-14 19:18, hash: 860a9f979d
Worked: (optional)

Short description of error
In the Graph Editor, when clicking on Channel - Extrapolation - Make Cyclic, the frame rate drops a lot.

Exact steps for others to reproduce the error

In pose mode, select all bones, go into the graph editor in order to make all the animation cycle. Select all curves, go to Channel - Extrapolation Mode - Make Cyclic.
Everything is cyclic as wanted, except that the frame rate is divided by 5 on my computer. It makes it very impracticle to edit the curves and see the result in real time.
What makes me think this is a bug is the fact that one simple fix I found is to simply close the graph editor window, or change it to another panel. Then the frame rate is back to normal and the animation cycles just fine.
Abyss_Fish_Bug_Report.blend

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.43 **Blender Version** Broken: version: 2.80 (sub 57), branch: master, commit date: 2019-04-14 19:18, hash: `860a9f979d` Worked: (optional) **Short description of error** In the Graph Editor, when clicking on Channel - Extrapolation - Make Cyclic, the frame rate drops a lot. **Exact steps for others to reproduce the error** In pose mode, select all bones, go into the graph editor in order to make all the animation cycle. Select all curves, go to Channel - Extrapolation Mode - Make Cyclic. Everything is cyclic as wanted, except that the frame rate is divided by 5 on my computer. It makes it very impracticle to edit the curves and see the result in real time. What makes me think this is a bug is the fact that one simple fix I found is to simply close the graph editor window, or change it to another panel. Then the frame rate is back to normal and the animation cycles just fine. [Abyss_Fish_Bug_Report.blend](https://archive.blender.org/developer/F6950933/Abyss_Fish_Bug_Report.blend)
Author

Added subscriber: @BenoitAlexis

Added subscriber: @BenoitAlexis

Added subscribers: @fclem, @ZedDB

Added subscribers: @fclem, @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-04-16 14:20:45 +02:00

I'm guessing that it is the curve drawing that it making this very slow. As pointed out, the playback is fast when the curve editor is not shown.

@fclem Is this something we could optimize?

I'm guessing that it is the curve drawing that it making this very slow. As pointed out, the playback is fast when the curve editor is not shown. @fclem Is this something we could optimize?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Looks like this is something we can optimize:

image.png

The allocation was introduced in fe00175c35.

Looks like this is something we can optimize: ![image.png](https://archive.blender.org/developer/F6951598/image.png) The allocation was introduced in fe00175c35.

@JacquesLucke I mesured the same thing. Is this something you want to tackle? I'm pretty sure using a GHash here is overkill. Also we could only allocate once for all points.

@JacquesLucke I mesured the same thing. Is this something you want to tackle? I'm pretty sure using a GHash here is overkill. Also we could only allocate once for all points.
Clément Foucault was unassigned by Jacques Lucke 2019-04-17 08:30:39 +02:00
Jacques Lucke self-assigned this 2019-04-17 08:30:39 +02:00
Member

Will try to refactor that a bit to avoid the allocation for every evaluation. :)

Will try to refactor that a bit to avoid the allocation for every evaluation. :)
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

81ce3801b improves the situation quite a bit. However, drawing the graph editor is still the bottleneck in that scene.
Unfortunately, that optimization is outside of the scope of the bug tracker, so I'm closing this.

81ce3801b improves the situation quite a bit. However, drawing the graph editor is still the bottleneck in that scene. Unfortunately, that optimization is outside of the scope of the bug tracker, so I'm closing this.
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
4 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#63656
No description provided.