Clearsurface + AddVertex slower than VertexCoords

Blitz3D Forums/Blitz3D Programming/Clearsurface + AddVertex slower than VertexCoords

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I know in DirectX I used to

Lock Vertex Buffer ( i.e. a bunch of verts making up a mesh )
Twiddle around with the verts
Unlock Vertex Buffer
Render

You are probably correct in saying that Blitz locks/unlocks the buffer for each change of vertex which would make it much much slower...locking a vertex buffer was a sure fire way of stalling the gpu.

Something like LockMesh() and then a 'VertexCoordsFast' function would be great.

On average your test is 15% faster using vertexcoords.