Alembic speed decrease for deforming geometry #71722

Closed
opened 2019-11-21 05:09:01 +01:00 by Daniel Ulrich · 9 comments

System Information
Operating system:MacOS Mojave 10.14.5, Kubuntu 18.04
Graphics card:Intel Iris 550 on Mac, Nvidia 1070 on linux

Blender Version
Broken: 2.82 ba1e9ae473 but also ealrier versions of 2.81 like ed779333bb
Worked: 2.80

Short description of error

playback of alembics with deforming geometry is at least 4-5 times slower an various systems.

Exact steps for others to reproduce the error
attached a simple blend file (abc would have been to big to attach), export as an alembic and try playback in 2.79 or 2.80 compared to newer 2.81 builds or 2.82 alpha. Sorry if it's a duplicate, didn't see it reported though.

alembicTest.blend

**System Information** Operating system:MacOS Mojave 10.14.5, Kubuntu 18.04 Graphics card:Intel Iris 550 on Mac, Nvidia 1070 on linux **Blender Version** Broken: 2.82 ba1e9ae4733a but also ealrier versions of 2.81 like ed779333bb82 Worked: 2.80 **Short description of error** playback of alembics with deforming geometry is at least 4-5 times slower an various systems. **Exact steps for others to reproduce the error** attached a simple blend file (abc would have been to big to attach), export as an alembic and try playback in 2.79 or 2.80 compared to newer 2.81 builds or 2.82 alpha. Sorry if it's a duplicate, didn't see it reported though. [alembicTest.blend](https://archive.blender.org/developer/F8150277/alembicTest.blend)
Author

Added subscriber: @dan2

Added subscriber: @dan2

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sybren A. Stüvel self-assigned this 2019-12-05 16:44:13 +01:00

I took the provided blend file, applied both Subdivision Surface modifiers to be 100% sure it uses a large number of vertices, and produced a 5.6 GB Alembic file. Playing back this file is done at approximately 3.2 FPS in 2.79, and at at approximately 1.9 FPS in master. So yes, it's slower, but not 4-5x slower.

Marking the shape as Smooth and exporting with current master (so what will be 2.82) produces a 1.2 GB Alembic file (due to the new normals handling from #71246). Playing back this file is done at approximately 3.5 FPS in 2.79, and at at approximately 5.0 FPS in master.

This was tested on Kubuntu Linux 19.04 with an NVidia Geforce GTX 1080 running the NVidia drivers version 418.67.

@dan2 In Blender 2.82 smooth meshes will be exported without normals, improving both file size and playback performance. Would that resolve your issue too?

I took the provided blend file, applied both Subdivision Surface modifiers to be 100% sure it uses a large number of vertices, and produced a 5.6 GB Alembic file. Playing back this file is done at approximately 3.2 FPS in 2.79, and at at approximately 1.9 FPS in master. So yes, it's slower, but not 4-5x slower. Marking the shape as Smooth and exporting with current master (so what will be 2.82) produces a 1.2 GB Alembic file (due to the new normals handling from #71246). Playing back this file is done at approximately 3.5 FPS in 2.79, and at at approximately 5.0 FPS in master. This was tested on Kubuntu Linux 19.04 with an NVidia Geforce GTX 1080 running the NVidia drivers version 418.67. @dan2 In Blender 2.82 [smooth meshes will be exported without normals](https://wiki.blender.org/wiki/Reference/Release_Notes/2.82/More_Features#Alembic), improving both file size and playback performance. Would that resolve your issue too?
Author

Yes, you're right, in this case the difference is not that big. I'm working with 4D captures a lot lately, can't upload a project file due to NDA but I made another test closer to my every day scenarios - the same cube subdivided only 7 times to 98kpolys/196k tris, resulting in a 566mb alembic file, exported from 2.80 is giving me 24 frames flat on 2.80 (I guess it's capped), and 9 frames on 2.82.

Disabling normal export and re-exporting from 2.82 halves the file size, and gives a similar frame rate, so that definitely solves the issue. Thanks for the tip!

Yes, you're right, in this case the difference is not that big. I'm working with 4D captures a lot lately, can't upload a project file due to NDA but I made another test closer to my every day scenarios - the same cube subdivided only 7 times to 98kpolys/196k tris, resulting in a 566mb alembic file, exported from 2.80 is giving me 24 frames flat on 2.80 (I guess it's capped), and 9 frames on 2.82. Disabling normal export and re-exporting from 2.82 halves the file size, and gives a similar frame rate, so that definitely solves the issue. Thanks for the tip!

Disabling normal export and re-exporting from 2.82 halves the file size

You don't even need to disable exporting normals ;-) 2.82 will do that automatically for all smooth-shaded meshes, as "no normals" is interpreted as "smooth" by most Alembic-reading applications.

> Disabling normal export and re-exporting from 2.82 halves the file size You don't even need to disable exporting normals ;-) 2.82 will do that automatically for all smooth-shaded meshes, as "no normals" is interpreted as "smooth" by most Alembic-reading applications.
Author

Good to know :) I can't remember when I had the need to use custom normals or normals at all, working in feature VFX for quite some time now.

I was editing alembics coming from maya (2016), really good to know how to fix the playback issue.

As far as I'm concerned this ticket can be closed, 24 frames all across the board here.

Good to know :) I can't remember when I had the need to use custom normals or normals at all, working in feature VFX for quite some time now. I was editing alembics coming from maya (2016), really good to know how to fix the playback issue. As far as I'm concerned this ticket can be closed, 24 frames all across the board here.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Thanks for getting back so quickly :)

Thanks for getting back so quickly :)
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#71722
No description provided.