aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-05-15 16:06:15 +0000
committerCarsten Weisse <[email protected]>2005-05-15 16:06:15 +0000
commite3562339a02625667fa75b6074469b4d7ef80232 (patch)
tree5a9538a5ff8b939ad41cf309362524696e5c6869
parente16cefc18e73c2e52649a1215cb71724d61611d5 (diff)
for better cache hit rates
-rw-r--r--src/jake2/render/fastjogl/Model.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jake2/render/fastjogl/Model.java b/src/jake2/render/fastjogl/Model.java
index 1feadbf..ae47135 100644
--- a/src/jake2/render/fastjogl/Model.java
+++ b/src/jake2/render/fastjogl/Model.java
@@ -2,7 +2,7 @@
* Model.java
* Copyright (C) 2003
*
- * $Id: Model.java,v 1.11 2005-05-07 23:44:38 cawe Exp $
+ * $Id: Model.java,v 1.12 2005-05-15 16:06:15 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -830,6 +830,9 @@ public abstract class Model extends Surf {
count = l.filelen / qfiles.dplane_t.SIZE;
// out = Hunk_Alloc ( count*2*sizeof(*out));
out = new cplane_t[count * 2];
+ for (i = 0; i < count; i++) {
+ out[i] = new cplane_t();
+ }
loadmodel.planes = out;
loadmodel.numplanes = count;
@@ -840,7 +843,6 @@ public abstract class Model extends Surf {
for (i = 0; i < count; i++) {
bits = 0;
in = new qfiles.dplane_t(bb);
- out[i] = new cplane_t();
for (j = 0; j < 3; j++) {
out[i].normal[j] = in.normal[j];
if (out[i].normal[j] < 0)