[swift-users] An OpenGL math library in pure Swift - now with SIMD

David Turnbull dturnbull at gmail.com
Tue Jan 5 22:09:38 CST 2016


On Tue, Jan 5, 2016 at 12:52 PM, David Turnbull <dturnbull at gmail.com> wrote:

> It's not as fast as packed SIMD but it's still really fast. As fast as C.
>

This is no longer true. I added SIMD to SwiftGL. Here's one million mat4x4
multiplications:

SIMD module direct  : 1.489s
SwiftGL + SIMD      : 1.487s
SwiftGL plain Swift : 6.492s  <- you'll get this on Linux

Everything will continue to work on Linux. It's just slower. Better than
nothing.

-david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160105/ba2c78a3/attachment.html>


More information about the swift-users mailing list