Alembic: low performance playback when keyframing object visibility #71740
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
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#71740
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: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.20
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash:
26bd5ebd42
Worked: 2.80
Short description of error
I just opened my current project and playback dropped from 40fps (in Blender 2.80) to 13fps (in 2.81). I found that problem is with hidden animated (or drivered) object. If you animate (or drive) viewport visibility, it take performance similar to showed this object.
Exact steps for others to reproduce the error
You can try it with this scene:
playback.blend
playback.abc
Added subscriber: @Cenda
Hello, any news with this? I would like to use 2.81 in my current project, but I can not, because performance is really bad.
btw. problem is not related to Alembic, even I use some character rig, it take many frames when it is hidden.
Added subscriber: @JacquesLucke
Changed status from 'Needs Triage' to: 'Needs User Info'
If it is not related to alembic, could you then prepare a new simpler example to reproduce the issue?
Just tried reproduce it without alembic, but it looks ok. So sorry problem is only with hidden alembic.
for workaround I turned off visibility in the viewport in source file:
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Added subscriber: @dr.sybren
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
This seems to be related to the keyframe animation on the viewport visibility of the objects. If I remove those FCurves, the performance is good (40-ish FPS on my machine). When the viewport visibility is keyframed, performance drops to 12-ish FPS on my machine.
I can also confirm that Blender 2.80 with the FCurves still there has the same performance as current 2.82 (
1f6ab32196
) with the FCurves removed.Low performance playbackto Alembic: low performance playback when keyframing object visibilityChanged status from 'Confirmed' to: 'Archived'
The slower performance is due to the new mesh normals handling introduced in
e9c149d911
. Mesh normals from Alembic were previously ignored by Blender; loading & handling them properly now takes time. This is to be expected. If smooth shading is good enough, and more detailed normals aren't necessary, export the Alembic without mesh normals and it should go back to the old performance.The effect of animated visibility on modifier evaluation is a known limitation of the current Blender architecture. This is commented on in DepsgraphBuilder::need_pull_base_into_graph(), which determines what is to be evaluated and what isn't:
As a workaround you could put a driver on the viewport visibility and let it target the modifier enabled flag (the opposite is harder to do due to the visibility being stored per-object-per-viewlayer layer and not just per-object).
I'm closing this as a known issue (the status "Invalid" only indicates "closed but not resolved"; your remark that performance has gone down is still valid) as this is a limitation of the current design, and not a bug in Blender as such.