It doesn't seem to be on the wiki anywhere but this little gem does appear in the changelog for Love version 0.10.0: "Added the ability for love.graphics.newMesh and Mesh:setVertices to accept a Data object." Under the hood, what this means, is that instead of iterating over a Lua table and pulling vertex data from it, `memcpy` can be used on a piece of contiguous memory to buffer your vertex data. What this means is you're faster than this. Don't think you are, know you are. Come on. Stop trying to hit me and hit me.
Example implementation: https://gist.github.com/TannerRogalsky/ ... 9ff571cff2
Essentially, we 'abuse' `love.image.newImageData` to allocate us a block of memory, cast that pointer into something useful using the FFI and then gain a 10 to 20 times speed increase when setting vertices.
Benchmarks performed on a MacBook Pro (Retina, 13-inch, Early 2015).==BENCHMARKS ==
# Lua Table
# Data Object