animating texture space on largish curve object causes slow down #72501

Open
opened 2019-12-17 09:21:31 +01:00 by Sander Kamp · 10 comments

System Information
Operating system: MacOS 10.14.6
Graphics card: Radeon Pro Vega 48 8GB

Blender Version
Broken: 2.82 alpha 2019-12-16
Worked: (optional)

I imported a largish SVG (300 KB). I joined the curves into one object and then placed a keyframe in the texture space. Blender will then slow down to unworkable. It depends on the size of the curve object, larger means slower.

I can't animate textures that way. So now I am using another object for texture coordinates which works and doesn't slow down at all but I would rather use the texture space.

#72501 example.blend

Developer note: see thread for profiling info and bottleneck

**System Information** Operating system: MacOS 10.14.6 Graphics card: Radeon Pro Vega 48 8GB **Blender Version** Broken: 2.82 alpha 2019-12-16 Worked: (optional) I imported a largish SVG (300 KB). I joined the curves into one object and then placed a keyframe in the texture space. Blender will then slow down to unworkable. It depends on the size of the curve object, larger means slower. I can't animate textures that way. So now I am using another object for texture coordinates which works and doesn't slow down at all but I would rather use the texture space. [#72501 example.blend](https://archive.blender.org/developer/F8250188/T72501_example.blend) *Developer note: see thread for profiling info and bottleneck*
Author

Added subscriber: @Sander-13

Added subscriber: @Sander-13
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Please provide the .blend file so that we can reproduce the issue.

Please provide the .blend file so that we can reproduce the issue.
Author

#72501 example.blend So this is a large curve object imported as SVG from Illustrator. It's part of a map that otherwise previews and renders fine. Just when you add a single keyframe to the texture space the timeline becomes very unresponsive.

[#72501 example.blend](https://archive.blender.org/developer/F8250188/T72501_example.blend) So this is a large curve object imported as SVG from Illustrator. It's part of a map that otherwise previews and renders fine. Just when you add a single keyframe to the texture space the timeline becomes very unresponsive.
Member

So, I did some profiling. The bottleneck is seems to be the algorithm, that that fills the areas between the curves.

There is an O(n^2) or maybe even O(n^3) algorithm (I don't know how the algorithm works exactly).

image.png

If you don't necessarily need this functionality, you could set the Fill Mode to None. It is still not fast, but significantly faster than before.

So, I did some profiling. The bottleneck is seems to be the algorithm, that that fills the areas between the curves. There is an `O(n^2)` or maybe even `O(n^3)` algorithm (I don't know how the algorithm works exactly). ![image.png](https://archive.blender.org/developer/F8260913/image.png) If you don't necessarily need this functionality, you could set the `Fill Mode` to `None`. It is still not fast, but significantly faster than before.

Added subscribers: @antoniov, @dfelinto

Added subscribers: @antoniov, @dfelinto

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

@antoniov is this something your GP/svg converted work touches/improve? If you see yourself working on it in the upcoming future feel free to change its subtype to bug.

@Sander-13 thanks for your report, I'm leaving it open as known issue, but if a developer decides to work on it, then they can change it back to a bug. For the records the issue reported here is a request for modified/improved behavior and not a bug in current behavior.

@antoniov is this something your GP/svg converted work touches/improve? If you see yourself working on it in the upcoming future feel free to change its subtype to bug. @Sander-13 thanks for your report, I'm leaving it open as known issue, but if a developer decides to work on it, then they can change it back to a bug. For the records the issue reported here is a request for modified/improved behavior and not a bug in current behavior.

The SVG import internally uses curves and then convert this to GPencil strokes, so nothing will change in curves, but maybe the same final result could you be obtained using strokes.

Note: We are not working now in SVG importer because we are refactoring all gpencil drawing engine. This is very important and needed for future developments, as good SVG import to GPencil. We will back to import SVG code after refactor will be ready.

The SVG import internally uses curves and then convert this to GPencil strokes, so nothing will change in curves, but maybe the same final result could you be obtained using strokes. Note: We are not working now in SVG importer because we are refactoring all gpencil drawing engine. This is very important and needed for future developments, as good SVG import to GPencil. We will back to import SVG code after refactor will be ready.
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:36:16 +01:00
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#72501
No description provided.