The
TDx_3DVertexBuffer::Optimize()
method
modifies
an
unlocked
vertex
buffer
for
optimal
performance
according
to
its
settings
and
current
system
environment.
The
optimal
setup
for
the
vertex
buffer
is
automatically
adjusted
as
circumstances
dictate.
As
a
result,
you
cannot
TDx_3DVertexBuffer::Lock()
an
optimised
vertex
buffer
or
use
it
as
the
destination
buffer
of
the
TDx_3DVertexBuffer::ProcessVertices()
or
TDx_3DVertexBuffer::ProcessVerticesStrided()
methods.
Optimised
vertex
buffers
improve
performance,
but
since
you
cannot
modify
them,
they
are
best
used
for
static
vertex
geometries.