From 914db068cdc9939f41a0418db8927a961fbb0cae Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Tue, 8 Feb 2005 21:48:21 +0000 Subject: 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. --- src/jake2/client/CL.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3