Python slow to create geometry Rhino8

I’m working with a python developer on some scripts to create some objects, which includes lots of simple polysurfaces, and importing and placing a number of blocks.

He’s added some time tracking to the script - in theory this should be done in around 10 seconds, but for some reason the final stage takes 1-2 minutes for the objects to appear.

Drawing OuterSection…
[OuterSection Done] Time: 5.81712341309
Drawing InnerSections…
[InnerSections Done] Time: 3.85306549072
Drawing FrontSections…
[FrontSections Done] Time: 0.00521087646484
Creating meshes…

The drawer runners and handles are blocks. (Probably created in V7 if that might be an issue)
The rest are all simply polysurfaces.

Does anyone have any tips on what could be the problem?

Rhino 8 SR19 2025-4-15 (Rhino 8, 8.19.25105.15001, Git hash:master @ d23526bd801a5638a914a9429fe88efcd4a87fe9)
License type: Commercial, build 2025-04-15
License details: Cloud Zoo

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 64GB)
.NET 7.0.0

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

Hybrid graphics configuration.
Primary display: Intel(R) Iris(R) Xe Graphics (Intel) Memory: 2GB, Driver date: 10-18-2024 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
- Secondary monitor attached to adapter port #1
Primary OpenGL: NVIDIA GeForce RTX 4060 Laptop GPU (NVidia) Memory: 8GB, Driver date: 3-14-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 572.83
> Integrated accelerated graphics device (shares primary device ports)
- Video pass-through to primary display device

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: 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: 3-14-2025
Driver Version: 32.0.15.7283
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8188 MB

Rhino plugins that do not ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\RhinoCAM 2025 for R8\RhinoCAM 2025 For Rhino8.0.rhp “RhinoCAM 2025 - The cutting edge CAM plug-in for Rhino 8.0 from MecSoft Corporation”
C:\Program Files\Rhino 8\Plug-ins\RhinoCAM 2025 for R8\RhinoArt1FileExporter For Rhino8.0.rhp “RhinoArt1FileExporter”
C:\Program Files\SimLab\Plugins\SimLab PDF From Rhino\SimLabPDFExporter.rhp “SimLab PDF Exporter”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.19.25105.15001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

Does it run quicker in wireframe mode?

If you’re using the new script editor it might be related to running in CPython. If possible, try running the code in IronPython instead. Or in the EditPythonScript.

@martinsiegrist

Wireframe isn’t any quicker unfortunately, around the same timeframe.

Regards,

Adrian

@AndersDeleuran ,

The scripts are being executed directly from an Alias and RunPythonScript per below:

! -RunPythonScript “C:\Users\adria\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts\EZIKIT\EZIKITForm\UnitsForm.py”

In that case, you can try adding the line #! python 2 at the very top of the UnitsForm.py file and see if that makes a difference.

Thanks again for the response…

I’m assuming I’ve done this correctly @AndersDeleuran ?

Forgive my ignorance, it looks like it is adding a comment, but I’m sure it is doing more than that. Ultimately the results (speed) is the same.

1 Like