Files
test/source/blender/blenlib
Jacques Lucke 602ecbdf9a Geometry Nodes: optimize Set Position node
This implements four optimizations in the Set Position node:
* Check whether the position input is the current position and ignore
  it if it is. This results in a speedup when only the Offset input is used.
* Use multi-threading when copying to computed values to the
  position attribute. All geometry types benefit from this.
* Use devirtualization for the offset and position input. This optimizes
  the common case that they are either single values or computed
  in the fly in a span.
* Write to `Mesh->mvert` directly instead of creating a temporary span.
  This makes setting mesh vertex positions even more efficient.

In my simple benchmark I'm using a White Noise node to offset the
position of 1,000,000 vertices. The speed is `20 ms -> 4.5 ms` in the
multi-threaded case and `32 ms -> 22 ms` in the single-threaded case.
2021-11-26 15:33:35 +01:00
..
2021-08-04 10:03:07 +10:00
2021-10-06 14:54:05 +11:00
2021-03-29 19:11:17 -06:00
2021-07-20 11:12:24 +10:00
2021-01-11 14:59:05 +01:00
2021-01-11 14:59:05 +01:00
2021-01-04 17:38:11 +11:00
2021-10-18 12:13:10 +11:00
2021-10-20 09:19:21 +11:00
2020-08-28 10:04:26 -06:00
2021-05-21 10:25:47 +05:30
2021-10-18 12:13:10 +11:00
2021-01-04 17:38:11 +11:00
2021-01-15 12:17:11 +11:00
2021-01-11 14:59:05 +01:00
2021-07-07 13:42:46 +10:00
2021-10-03 13:44:44 +02:00
2021-09-06 15:51:53 +10:00
2021-10-04 13:14:58 +11:00
2021-09-24 14:42:48 +02:00