Another optimizations, instead of putting data to the native buffer for every vertex I now put it into a intermediate float buffer and later put it in the native buffer.