diff options
author | Carsten Weisse <[email protected]> | 2005-02-08 21:48:21 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-02-08 21:48:21 +0000 |
commit | 914db068cdc9939f41a0418db8927a961fbb0cae (patch) | |
tree | 17b854ec995cdfcee0deb8bd0d31ccb63d9b31ad /src | |
parent | 8aa361c2b29cee153344d74540d6fb50a3ec4b16 (diff) |
bugfix:
don't force GC on playing a cinematic.
the error was triggered at the end of the demo levels.
toggle between "The End" and the menu worked fine but the menu animation was very slow.
The reason was a Full-GC every frame.
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/client/CL.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jake2/client/CL.java b/src/jake2/client/CL.java index b43e1af..a5d6fb0 100644 --- a/src/jake2/client/CL.java +++ b/src/jake2/client/CL.java @@ -2,7 +2,7 @@ * CL.java * Copyright (C) 2004 * - * $Id: CL.java,v 1.19 2005-02-07 22:14:38 cawe Exp $ + * $Id: CL.java,v 1.20 2005-02-08 21:48:21 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -1559,7 +1559,8 @@ public final class CL { && Globals.cls.state == Defines.ca_active) { CL_view.PrepRefresh(); // force GC after level loading - System.gc(); + // but not on playing a cinematic + if (Globals.cl.cinematictime == 0) System.gc(); } SCR.UpdateScreen(); |