diff options
author | Carsten Weisse <[email protected]> | 2005-05-07 23:44:38 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-05-07 23:44:38 +0000 |
commit | 645763d5c333568d44a05456f1ace37bd6341f1c (patch) | |
tree | b7cb1116d884e7266068df8eba885f723a10ec90 /src/jake2/render/lwjgl/Model.java | |
parent | 7b85a1449e8ab61c0aac8069d3e7c9c2cd64218e (diff) |
model frame animation is now stored in an int[];
an int value contains the x, y, z, lightnormal (8bit for each element)
this reduces the memory footprint massive and performs better
Diffstat (limited to 'src/jake2/render/lwjgl/Model.java')
-rw-r--r-- | src/jake2/render/lwjgl/Model.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/render/lwjgl/Model.java b/src/jake2/render/lwjgl/Model.java index c6c8daf..6875dbe 100644 --- a/src/jake2/render/lwjgl/Model.java +++ b/src/jake2/render/lwjgl/Model.java @@ -2,7 +2,7 @@ * Model.java * Copyright (C) 2003 * - * $Id: Model.java,v 1.8 2005-05-07 18:00:03 cawe Exp $ + * $Id: Model.java,v 1.9 2005-05-07 23:44:37 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -1069,9 +1069,9 @@ public abstract class Model extends Surf { { poutframe[i] = new qfiles.daliasframe_t(buffer); // verts are all 8 bit, so no swapping needed - poutframe[i].verts = new qfiles.dtrivertx_t[pheader.num_xyz]; + poutframe[i].verts = new int[pheader.num_xyz]; for (int k=0; k < pheader.num_xyz; k++) { - poutframe[i].verts[k] = new qfiles.dtrivertx_t(buffer); + poutframe[i].verts[k] = buffer.getInt(); } } |