| ▲ | awesan 3 hours ago | |||||||
Zig is adding native vectors including operator support, there are some recent issues/prs about this topic. The general technique of SoA is pretty useful both in games and other applications, but of course I cannot speak to the specific use-case you are describing. | ||||||||
| ▲ | nvme0n1p1 2 hours ago | parent [-] | |||||||
Zig vectors force data into SIMD registers even if that would make the code slower. They're a specialty type. You should only reach for vectors if you would have used SIMD intrinsics in C for example. | ||||||||
| ||||||||