Geometry Nodes: Optimize joining of instances #113886

Merged
Hans Goudey merged 3 commits from HooglyBoogly/blender:instances-join-performance into main 2023-10-19 10:24:09 +02:00
Member

Restore lost performance from removing reserve in ff4d5b6f04
in a better way. First build offsets so we know where in the result the
source data should go, then copy the data in parallel.

Joining geometries containing 1 million instances each took 194 ms
before the change and only 15.6 ms afterwards.

Restore lost performance from removing `reserve` in ff4d5b6f04d42a3b222a in a better way. First build offsets so we know where in the result the source data should go, then copy the data in parallel. Joining geometries containing 1 million instances each took 194 ms before the change and only 15.6 ms afterwards.
Hans Goudey added 1 commit 2023-10-18 14:18:28 +02:00
152021da5a Geometry Nodes: Optimize joining of instances
Restore lost performance from removing `reserve` in ff4d5b6f04
in a better way. First build offsets so we know where in the result the
source data should go, then copy the data in parallel.
Hans Goudey added the
Interest
Geometry Nodes
label 2023-10-18 14:19:24 +02:00
Hans Goudey added this to the Nodes & Physics project 2023-10-18 14:19:33 +02:00
Hans Goudey requested review from Jacques Lucke 2023-10-18 14:19:40 +02:00
Jacques Lucke approved these changes 2023-10-18 17:54:08 +02:00
Jacques Lucke left a comment
Member

Please test it once more in a debug build and also run the buildbot on the change before committing.

Please test it once more in a debug build and also run the buildbot on the change before committing.
@ -97,19 +99,22 @@ static void join_attributes(const Span<const GeometryComponent *> src_components
static void join_instances(const Span<const GeometryComponent *> src_components,
GeometrySet &result)
{
Array<int> offsets_data(src_components.size());
Member

Off-by-one.

Off-by-one.
HooglyBoogly marked this conversation as resolved
Hans Goudey added 2 commits 2023-10-19 09:27:56 +02:00
Author
Member

@blender-bot build

@blender-bot build
Hans Goudey merged commit a5eaf6698a into main 2023-10-19 10:24:09 +02:00
Hans Goudey deleted branch instances-join-performance 2023-10-19 10:24:11 +02:00
Sign in to join this conversation.
No reviewers
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 Assignees
2 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#113886
No description provided.