Module dpmod: Change committed

havoc at icculus.org havoc at icculus.org
Sun Jun 8 03:51:06 EDT 2003


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmod
Commit time: 2003-06-08 07:51:06 UTC

Log message:

now removes up to 10000 decors per frame (yes this was necessary in helm18 when testing really insane weaponry)

Modified files:
     qc/decors.qc

------=MIME.cce85f0de3b014ae48648432ca7f6d31
Content-Type: text/plain; name="dpmod.20030608.075106.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030608.075106.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmod/qc/decors.qc
diff -u dpmod/qc/decors.qc:1.2 dpmod/qc/decors.qc:1.3
--- dpmod/qc/decors.qc:1.2	Thu Feb 20 04:01:01 2003
+++ dpmod/qc/decors.qc	Sun Jun  8 03:50:56 2003
@@ -30,10 +30,10 @@
 	if (numdecors <= maxdecors)
 		return; // nothing to do
 
-	// limit it to considering 1000 entities per frame,
+	// limit it to considering 10000 entities per frame,
 	// otherwise it can cause a runaway loop error
 	iterations = 0;
-	while (numdecors > maxdecors && iterations < 1000)
+	while (numdecors > maxdecors && iterations < 10000)
 	{
 		iterations = iterations + 1;
 		// find and remove the oldest decors (upto 10 at once)


More information about the twilight-commits mailing list