Skip to content

Commit 8610bc1

Browse files
Update diagram caption to reflect improved memory layout with vec4 fields for optimal SIMD performance
1 parent ec2b4aa commit 8610bc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/learning-paths/cross-platform/vectorization-friendly-data-layout/data-layout-basics-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void simulate_objects(object_t *objects, float duration, float step) {
7272

7373
The memory layout now looks like this:
7474

75-
![Memory layout #center](memory-layout2.svg "Figure 2. struct object memory layout with vec4")
75+
![Diagram showing the improved memory layout of the object struct using vec4 fields with padding, achieving 16-byte alignment for optimal SIMD performance#center](memory-layout2.svg "Figure 2. struct object memory layout with vec4")
7676

7777
After making the changes, compile the code again:
7878

0 commit comments

Comments
 (0)