Project

General

Profile

« Previous | Next » 

Revision 98b2fcb6

Added by danij almost 13 years ago

Model Renderer|Fixed: Dynamically enlarge vertex buffers to accommodate model vertices

Previously Doomsday used fixed-size vertex buffers (and normals,
etc...) while rendering models. However, as there now appears to be
DMD files in the wild which use many more vertices than those which
may be created using the original md2tool; we must now dynamically
resize the vertex render buffers. Failure to do so results in the
engine writing past the end of the static buffers and trashing
memory.

Vertex buffers are now dynamically resized according to the maximum
number of vertices needed to render the densest model among those
presently loaded.

There however remains a fixed limit of 16192 vertices, primarily to
prevent model authors from going completey OTT. If a model contains
more than this number, a warning will be logged and the model will
simply not be rendered.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences