Better float array buffering

This commit is contained in:
Jozufozu 2021-08-13 13:35:18 -07:00
parent 3c52a2cc53
commit b85bf14ad9

View file

@ -37,11 +37,8 @@ public class VecBuffer {
public VecBuffer putFloatArray(float[] floats) {
for (float f : floats) {
internal.putFloat(f);
}
// internal.asFloatBuffer().put(floats);
// internal.position(internal.position() + floats.length * 4);
internal.asFloatBuffer().put(floats);
internal.position(internal.position() + floats.length * 4);
return this;
}