Placing Grasshopper Style object is extremely slow

Hello,
I don’t know if I am doing something wrong, but placing Grasshopper Style Element most of the time is extremely slow, sometimes it takes about 2 minutes to place one object.

Rhino file:
GH Style slow performance3.3dm (842.3 KB)

SYSTEM INFO

Rhino 7 SR9 2021-7-20 (Rhino 7, 7.9.21201.05001, Git hash:master @ 78eb9aea49a0504b0581ba2015526423539a4ed5)
License type: Edukacyjna, build 2021-07-20
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 32Gb)

Computer platform: LAPTOP - Plugged in [98% battery remaining]

Non-hybrid graphics configuration.
Primary display and OpenGL: NVIDIA GeForce GTX 1070 (NVidia) Memory: 8GB, Driver date: 6-21-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 471.11
> Integrated accelerated graphics device with 4 adapter port(s)
- Secondary monitor is laptop’s integrated screen or built-in port
- Windows Main Display attached to adapter port #1

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 6-21-2021
Driver Version: 30.0.14.7111
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Rhino WIP\Plug-ins\Karamba\License\Karamba3D_LicensePlugin_Rhino7.rhp “Karamba3DLicense”
C:\Program Files\Rhino WIP\Plug-ins\Tibidabo\Tibidabo.rhp “Tibidabo”
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp “Datasmith Exporter” 4.27.0.0
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Twinmotion Direct Link 2020.2 (e24ee14a-9514-47da-8fe6-f6e61b20160e)\Twinmotion Direct Link 2020.rhp “Twinmotion Direct Link 2020” 1.0.6.0
C:\Users\USER\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\IntelDenoiser\0.6.0\IntelDenoiser.Windows.rhp “IntelDenoiser.Windows” 0.1.0.0
C:\Users\USER\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\NVIDIADenoiser\0.4.0\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.0.0
C:\Users\USER\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\SubstanceImporter\2.0.0\Substance.Win.rhp “SubstanceImporter” 2.0.0.0
C:\Program Files\Rhino WIP\Plug-ins\Tibidabo\VisualARQ.rhp “VisualARQ”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino WIP\Plug-ins\Commands.rhp “Commands” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino WIP\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino WIP\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino WIP\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.9.21201.5001
C:\Program Files\Rhino WIP\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino WIP\Plug-ins\Displacement.rhp “Displacement”

From 0:00 - 0:16 I placed 4 objects and from 0:20 to 2:15 I’m struggling to place 1

In the video, you can see that the first couple of objects are spawning pretty fast and if I want to place a new copy Rhino slows to the extent that it is unworkable.
Even more confusing is, that when I was recording the video, it was the first time ever when placing my GH Style wasn’t lagging. Unfortunately, everything quickly went back to normal (much worst performance in the second part of the video).

I have this issue with different GH Styles but the one used in the video, in Grasshopper is computing 1,5 s. As GH Style it’s much slower, but the worst are these lags during placement.

GH file computation time - 1,5 s

image

Frankly, it is worrying me a lot because my main purpose of preparing GH Styles was to make my life easier when dealing with big Grasshopper definitions.

Also, with this definition I get exceptions (they never show in vanilla Grasshopper, only with GH Style)


Unfortunately, I am using plugins in this definition and I don’t think I can get off all of them, but maybe you don’t even need to check the GH file.

Bonus question:

Is there something that can be done to the UI to make it quicker? Unfortunately, it is very slow and changing any settings is a bit frustrating. Is it possible with the current Rhino UI “technology” or it would need fundamental changes? I more or less start to feel what I can do with VA and what I can’t but often even if I can do something the whole software is way too unresponsive to work efficiently.

Watch me waiting

1 Like

Hi @Czaja,

This is not normal. The time to compute the geometry for the GH style should be similar, maybe 10%-20% slower because we’re baking the geometry into a block, but not as slow as you’re reporting.

I’m going to debug your GH-style to see what is going on.
Can you send me the GH file to visualarq@asuni.com?

Regards,

Enric

In the past, I had similar issues, with very simple gh definitions.

Hello,

@enric Aren’t GH Style Elements included in the Rhino file? I never had a chance to share any of my GH Styles so I don’t know how they act on other computers.

Another problem is that in this particular GH Style, which is very complex and certainly not yet refactorized, I am using a bunch of components that came from 3-rd party plugins. So maybe if anyone has less complex definitions that shows this problem, like @zabrielza, please send, or share it so we can have this issue resolved.

Ok,
This time I got relatively simple GH Style which shows very slow and problematic placement.

Inside GH Style definition Pufferfish is used: Pufferfish | Food4Rhino

Rhino file: VA Slow GH Style.3dm (313.6 KB)

GH Style definition: VA tween fill.gh (27.2 KB)

VAL: VA Tween Fill.val (54.6 KB)

VisualARQ 2.12.0.15211
Rhino 7.11.21278


Placing slowness

Dragging slowness

Hello @Czaja,

I could reproduce the issue as well, so I have just added to our list. I’ll keep you updated about it.