Project

General

Profile

« Previous | Next » 

Revision 3a2f399e

Added by danij over 17 years ago

Updated cbuffer_t with a new means to retrieve lines. Con_BufferGetLines() returns an array of ptrs from the given buffer. This was added to eliminate the problem of meshing due to the fact that multiple threads can write to a cbuffer_t, meaning that their contents could (and often do) change while one thread is rendering and another is writing.
This comes at a small price though; when drawing the console Con_BufferGetLines() is called each frame. Therefore, each frame, an array must be allocated, ptrs collected and then, after use, the array should be free'd.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences