Extra debugging info for DCQ overload conditions.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@398 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2002-12-10 19:52:02 +00:00
parent d0b0c7f6cc
commit 2a711f2c9a
+2 -1
View File
@@ -158,7 +158,7 @@ TFB_DrawCommandQueue_Push (TFB_DrawCommandQueue* myQueue,
while (myQueue->FullSize >= DCQ_MAX - 1) while (myQueue->FullSize >= DCQ_MAX - 1)
{ {
int old_depth, i; int old_depth, i;
fprintf (stderr, "DCQ overload. Sleeping until renderer is done.\n"); fprintf (stderr, "DCQ overload (Size = %d). Sleeping until renderer is done.\n", myQueue->Size);
// Restore the DCQ locking level. I *think* this is // Restore the DCQ locking level. I *think* this is
// always 1, but... // always 1, but...
old_depth = DCQ_locking_depth; old_depth = DCQ_locking_depth;
@@ -167,6 +167,7 @@ TFB_DrawCommandQueue_Push (TFB_DrawCommandQueue* myQueue,
WaitCondVar (RenderingCond); WaitCondVar (RenderingCond);
for (i = 0; i < old_depth; i++) for (i = 0; i < old_depth; i++)
Lock_DCQ (); Lock_DCQ ();
fprintf (stderr, "DCQ clear (Size = %d). Continuing.\n", myQueue->Size);
} }
DCQ[myQueue->InsertionPoint] = *Command; DCQ[myQueue->InsertionPoint] = *Command;
myQueue->InsertionPoint = (myQueue->InsertionPoint + 1) % DCQ_MAX; myQueue->InsertionPoint = (myQueue->InsertionPoint + 1) % DCQ_MAX;