added ringbuffer+locking and vertex+index data upload