GPencil: Multiple lattices reduces FPS #89349
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
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89349
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
Graphics card:RTX6000
CPU:intel xeon platinum 8179m
Blender Version
Broken: 2.93
Short description of error
When version 2.93 is updated, you can add multiple lattices to the same Greasepencil, you have a new one problem
Adding multiple lattices to the same Greasepencil reduces the frame rate to 3 fps
CPU utilization is very poor,mainly focused on the use of a single
Step to Reproduce the error
G
Test File:
#89349.blend
Short video:
Added subscriber: @RayLee
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Adding multiple lattice modifier drops the FPS almost to 6-12.
Confirming the report but
Grease pencil
module team can answer this in better way.System Information
Added subscriber: @antoniov
@RayLee Could you provide a simple test file to profile where is the bottleneck?
【Greasepencil】Multiple lattices cause Cottonwoodto GPencil: Multiple lattices reduces FPSChanged status from 'Confirmed' to: 'Needs User Info'
Hi @antoniov , initially I confirmed the ticket, now unsure if there is actual fall in FPS.
Tried with default 2d animation scene.
From my observation: FPS increased when adding Lattice modifier in stack but FPS reduces when I stopped to add them (I think its obvious)
@PratikPB2123 the point in your comment is
From my observation
... I have tested in my PC and I don't see anything, so maybe my example is not the best or I'm doing something different, this is the reason I would like to have a test file.You can understand that for us is a time consuming task to prepare a test file for each bug report, so if you provide a test file we can go to the problem itself, instead to try to reproduce it first creating a test file.
Thanks for your understanding.
@antoniov , sorry to keep you on wait. Attaching the file. (Also updating the task description)
Yes, I understand.
#89349.blend
Thanks @PratikPB2123 for the file. I will do a profile test to see what is going on.
In the first test with your file, I don't see anything below 21 FPS (only in one frame) and later keeps 25 FPS all the time. I have a i9-9900K CPU with NVIDIA RTX2080 TI using Windows 10.
Could you record a small video with the exact steps you do?...maybe you do something in a different way than me and this is the reason.
Also, have you tested in a different PC with different hardware setup?
About threading, the modifiers evaluation is done in a single thread because need to do sequential, so don't see a way to make it multithread.
Second test with your file. I'm able to get sustained 40 FPS
Uploaded the video
Not yet. I will check with other laptop on weekend
Looking at your video I see why I could not reproduce, we were looking at different things. The modifiers are optimized to keep fast FPS playing animation.
In you video you are editing the data and you are looking at the FPS of the viewport refresh. In this case, the system precalculate a lot of things every time you edit a point. This is done to get fast play, but the cost is the edition is slower.
Every time you edit the stroke, the internal geometry of several things of the stroke is calculated and saved to use later and this is what you get. Also, this is not related to modifiers only, modifiers just add more complexity to the calculation.
I have tested in my system and I don't notice any lag editting the lattice, but I did not made a measure with a tool. Of course edit with lattice modifiers is slower, but this is normal and don't make edit unusable.
I don't know what we can do here to improve speed because the problem is if we delay updates in edit, the play speed will be worst.
@antoniov I’m sorry I didn’t get the message until now. Here’s an interesting question: 1. When I have a character that has 10 lattices, FPS is very low.
Also, I don’t know if you’ve noticed, but the CPU only uses a single thread, and the utilization is very low.
Check out the video for details
https://youtu.be/RmgKGsnJlXA
Changed status from 'Needs User Info' to: 'Needs Triage'
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Thx for the report!
Reading all this makes me think this is more of a request for performance improvement than a real bug.
Even if we run into a suboptimal, non-linear scaling of performance with multiple lattices or seeing the fact that multithreading is not utilized well, the tracker would still be the wrong place to handle this I think.
Unless there is something obviously wrong @antoniov? Usually this would be closed due to the following policy (but will let @antoniov decide):
Changed status from 'Needs Developer To Reproduce' to: 'Archived'
We can close it because this is a feature request..not a bug.