#When to use Vec3 vs Vec3A

1 messages · Page 1 of 1 (latest)

undone jewel
#

The docs mentions that Vec3A is more performant for SIMD supported platforms. Does that mean they should be the first choice when writing arbitrary algorithms involving vectors, or is there a reason not to use them?

I get the impression Vec3 are more common in general when looking at Bevy function signatures.

Is there a good rule of thumb, when to use Vec3 vs Vec3A?

#

When to use Vec3 vs Vec3a

#

When to use Vec3 vs Vec3A

halcyon anchor
#

Use a Vec3 until you've identified that the function is hot and benchmarked that Vec3A is faster

#

They take up more memory