2004-04-20, 13:21
you definitely do no want to be create a vertex buffer each frame. you're better off creating a vb and locking it then updating geometry than using drawprimitiveup though, especially if your data changes less than once per frame.
something else to consider - when updating vertex (and texture) data, try to write every byte in the buffer sequentially, even if they haven't changed - writing every byte is much faster than say every other byte or every other float or such due to the way write combining memory works.
something else to consider - when updating vertex (and texture) data, try to write every byte in the buffer sequentially, even if they haven't changed - writing every byte is much faster than say every other byte or every other float or such due to the way write combining memory works.