Geometry nodes. Low performance case with instancing #94733

Closed
opened 2022-01-08 05:37:08 +01:00 by Vyacheslav Kobozev · 13 comments

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-05 22:15, hash: 1d9bac7d92

Here is the file
untitled.blend
Performance fall down, when I use checkbox «As instance» for object, that instanced + object have disabled SubSurf modifier with zero levels.
Try to delete modifier or uncheck checkbox.

2022-01-08_07-31-25.mp4

Also realized instances cause slow movement of initial mesh. I suppose, initial mesh should be «frozen» and cached before pass to GN and changing its properties, thad do not influence to GN-tree shouldnt cause performance drop.
untitled1.blend

2022-01-08_07-42-15.mp4

**System Information** Operating system: Windows-8.1-6.3.9600-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-05 22:15, hash: `1d9bac7d92` Here is the file [untitled.blend](https://archive.blender.org/developer/F12793852/untitled.blend) Performance fall down, when I use checkbox «As instance» for object, that instanced + object have disabled SubSurf modifier with zero levels. Try to delete modifier or uncheck checkbox. [2022-01-08_07-31-25.mp4](https://archive.blender.org/developer/F12793854/2022-01-08_07-31-25.mp4) Also realized instances cause slow movement of initial mesh. I suppose, initial mesh should be «frozen» and cached before pass to GN and changing it`s properties, thad do not influence to GN-tree shouldn`t cause performance drop. [untitled1.blend](https://archive.blender.org/developer/F12793866/untitled1.blend) [2022-01-08_07-42-15.mp4](https://archive.blender.org/developer/F12793859/2022-01-08_07-42-15.mp4)

Added subscriber: @Vyach

Added subscriber: @Vyach
Vyacheslav Kobozev changed title from Geometry nodes. Low viewport performance case to Geometry nodes. Low performance case 2022-01-08 05:48:15 +01:00
Vyacheslav Kobozev changed title from Geometry nodes. Low performance case to Geometry nodes. Low performance case with instancing 2022-01-08 05:48:43 +01:00

Added subscriber: @iss

Added subscriber: @iss

Nut quite sure if I understand what is the role of subdivision modifier - is there no lag if this is any different modifier? reminds me of #94671, in both cases I can't reproduce this issue though.

Also I am not able to play second video - it doesn't load in browser and does not have sound in VLC.

Nut quite sure if I understand what is the role of subdivision modifier - is there no lag if this is any different modifier? reminds me of #94671, in both cases I can't reproduce this issue though. Also I am not able to play second video - it doesn't load in browser and does not have sound in VLC.

In #94733#1284799, @iss wrote:
Nut quite sure if I understand what is the role of subdivision modifier - is there no lag if this is any different modifier? reminds me of #94671, in both cases I can't reproduce this issue though.

Tested. Even heavier bevel modifier do not make performance impact if disabled. Remesh do not drop fps too, when disabled. So not any modifier.
And Subsurf may be not the last modifier in stack.

> In #94733#1284799, @iss wrote: > Nut quite sure if I understand what is the role of subdivision modifier - is there no lag if this is any different modifier? reminds me of #94671, in both cases I can't reproduce this issue though. Tested. Even heavier bevel modifier do not make performance impact if disabled. Remesh do not drop fps too, when disabled. So not any modifier. And Subsurf may be not the last modifier in stack.

Interesting. Now I was able to play second video too, this seems to be different issue, because I am able to reproduce that. Not sure if that is bug though, Will have to look how realize instances works. but it doesn't seem to be executing modifier for each instance.

Interesting. Now I was able to play second video too, this seems to be different issue, because I am able to reproduce that. Not sure if that is bug though, Will have to look how realize instances works. but it doesn't seem to be executing modifier for each instance.

In #94733#1284865, @iss wrote:
Interesting. Now I was able to play second video too, this seems to be different issue, because I am able to reproduce that. Not sure if that is bug though, Will have to look how realize instances works. but it doesn't seem to be executing modifier for each instance.

For the second case:

  1. no matter what modifier is
  2. even without modifier, when I move instanced Suzanne, it have a bit lower performance
  3. applied modifier, the same effect, so only polycount matters.
    So moving original changes something and call the tree again, perhaps...
> In #94733#1284865, @iss wrote: > Interesting. Now I was able to play second video too, this seems to be different issue, because I am able to reproduce that. Not sure if that is bug though, Will have to look how realize instances works. but it doesn't seem to be executing modifier for each instance. For the second case: 1) no matter what modifier is 2) even without modifier, when I move instanced Suzanne, it have a bit lower performance 3) applied modifier, the same effect, so only polycount matters. So moving original changes something and call the tree again, perhaps...

Only 3.1 have performance issues. Even with old nodes.
radial low perf.blend
2022-01-09_03-41-50.mp4

Only 3.1 have performance issues. Even with old nodes. [radial low perf.blend](https://archive.blender.org/developer/F12796792/radial_low_perf.blend) [2022-01-09_03-41-50.mp4](https://archive.blender.org/developer/F12796788/2022-01-09_03-41-50.mp4)

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

@HooglyBoogly Do you know if this works as expected?

@HooglyBoogly Do you know if this works as expected?
Member

Hmm, loading the radial low perf.blend file, it seems to have expected performance for me. Can you still reproduce this, I think 5560f32447 might have made an improvement in this area.

Hmm, loading the `radial low perf.blend` file, it seems to have expected performance for me. Can you still reproduce this, I think 5560f32447 might have made an improvement in this area.

In #94733#1286547, @HooglyBoogly wrote:
Hmm, loading the radial low perf.blend file, it seems to have expected performance for me. Can you still reproduce this, I think 5560f32447 might have made an improvement in this area.

radial low perf.blend now works fine for me in the latest build 3.1.0 Alpha, 922ae55a16, 2022-01-10 22:45

untitled1.blend shows same issue, until instances realized. When i mute Realize node, it starts to work well.

Also, disabled subdiv modifier do not influence performance animore with this file.

> In #94733#1286547, @HooglyBoogly wrote: > Hmm, loading the `radial low perf.blend` file, it seems to have expected performance for me. Can you still reproduce this, I think 5560f32447 might have made an improvement in this area. *radial low perf.blend* now works fine for me in the latest build 3.1.0 Alpha, 922ae55a16a9, 2022-01-10 22:45 *untitled1.blend* shows same issue, until instances realized. When i mute Realize node, it starts to work well. Also, disabled subdiv modifier do not influence performance animore with this file.
Member

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Hans Goudey self-assigned this 2022-01-17 06:38:35 +01:00
Member

Thanks for checking. I'm pretty sure this is the problem with bounding boxes being recalculated for geometry instances, because there is no place to cache them at the moment. This should be improved, but there's an existing task for it, #92963. So I'll close this report. Thanks.

Thanks for checking. I'm pretty sure this is the problem with bounding boxes being recalculated for geometry instances, because there is no place to cache them at the moment. This should be improved, but there's an existing task for it, #92963. So I'll close this report. Thanks.
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#94733
No description provided.