09-21-2014, 01:03 AM
Not sure about that, it'd be a bit faster than calculating the values in Lua, but I fear the glue code would actually take a lot of the performance out. Perhaps a different kind of API would make sense - a 2D or 3D array of numbers and operations on it - just like what we were discussing with @worktycho when he was trying out the GPU optimization. The Lua code could create such an array, do a few operations on it, that would be pretty fast, and finally apply the numbers somewhere - either a biome map, or a height map, or whatever.