Struct of Arrays Refactor for Mesh Vertices #93602
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93602
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently,
MVert
stores quite a bit of data:This is inefficient, because it means vertex positions aren't stored in a contiguous array.
It also means all of the other data isn't stored contiguously. Because of that, access to all of the data
is slower than it should be. We also pay the cost of storing data when it's unused.
We should convert
MVert
to be the same asfloat3
, and move the other elements into separate arrays.This can significantly simplify code, and makes it easier to achieve better performance for mesh editing.
Normals
Normals are covered by #91186 (Move mesh vertex normals out of MVert). This task is for the rest of the data stored in the struct.
Bevel Weight
In the longer term, this should be stored as an optional named generic float attribute (see #89054).
In the shorter term, this can be stored as
CD_BWEIGHT
. This means slightly increased memory usage when this data is used,but it also gives increased precision, and it doesn't have to be allocated when it isn't used.
291c313f80
Flag
In the flag is:
Selection
It's not clear to me how selection interacts with
mselect
(MSelect
), but perhaps it can be moved there.It can also be moved to a separate boolean custom data layer with a name that keeps it from being displayed in the UI.
TMP_TAG
90a23dec46
Since this is only used locally in one area, it can be easily replaced with
Array<bool>
or the C equivalent.ME_HIDE
2480b55f21
This can be moved to a separate boolean custom data layer, likely with a reserved name.
Face Dot
8c25889bb6
Currently this is only set by subdivision code. I'm not clear on the details.
Face dot vertices could be moved to a separate array, since they are just runtime data.
PBVH Update Tag
7682d7de04
This is just used in sculpt and paint code, it could be relatively simply moved to a bitmask or a separate boolean array.
Internal Mesh API
When there is a
position
attribute, functions that refer to mesh "coords" and "vertices" should be changed to refer to "positions" instead.This makes the internal API consistent with more public naming of attributes. This should affect the functions added in D14760.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @HooglyBoogly
Added subscriber: @GeorgiaPacific
This issue was referenced by
cfa53e0fbe
Added subscriber: @Zeastin
Added subscriber: @Garek
Added subscriber: @Baardaap
This issue was referenced by
90a23dec46
Convert Mesh vertex data into float3to Performance: Convert Mesh vertex data into float3This issue was referenced by
7682d7de04
This issue was referenced by
22c60ac8b1
Performance: Convert Mesh vertex data into float3to Convert Mesh vertex data into float3Convert Mesh vertex data into float3to Struct of Arrays Refactor for Mesh VerticesThis issue was referenced by
8c25889bb6
This issue was referenced by
2480b55f21
This issue was referenced by
291c313f80
This issue was referenced by
12becbf0df
Added subscriber: @EAW
This issue was referenced by
1af62cb3bf
Changed status from 'Confirmed' to: 'Resolved'
sixthat referenced this issue2023-03-14 11:12:01 +01:00