Update of /cvsroot/jake2/jake2/src/jake2/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16325/src/jake2/client
Modified Files:
CL.java
Log Message:
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.
Index: CL.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/client/CL.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** CL.java 7 Feb 2005 22:14:38 -0000 1.19
--- CL.java 8 Feb 2005 21:48:21 -0000 1.20
***************
*** 1560,1564 ****
CL_view.PrepRefresh();
// force GC after level loading
! System.gc();
}
--- 1560,1565 ----
CL_view.PrepRefresh();
// force GC after level loading
! // but not on playing a cinematic
! if (Globals.cl.cinematictime == 0) System.gc();
}
|