Update of /cvsroot/jake2/jake2/src/jake2/sys
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1366/src/jake2/sys
Modified Files:
InputListener.java Sys.java IN.java
Log Message:
profiling
Index: InputListener.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/sys/InputListener.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** InputListener.java 7 Jul 2004 19:59:51 -0000 1.1.1.1
--- InputListener.java 19 Jul 2004 19:22:57 -0000 1.2
***************
*** 44,52 ****
static Jake2InputEvent nextEvent() {
! Jake2InputEvent ev = null;
synchronized (eventQueue) {
! try {
! ev = (Jake2InputEvent)eventQueue.removeFirst();
! } catch (Exception e) {}
}
return ev;
--- 44,50 ----
static Jake2InputEvent nextEvent() {
! Jake2InputEvent ev;
synchronized (eventQueue) {
! ev = (!eventQueue.isEmpty())?(Jake2InputEvent)eventQueue.removeFirst():null;
}
return ev;
Index: IN.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/sys/IN.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IN.java 8 Jul 2004 15:58:46 -0000 1.2
--- IN.java 19 Jul 2004 19:22:57 -0000 1.3
***************
*** 91,95 ****
public static void toggleMouse() {
! if (mouse_active) {
mouse_avail=false;
DeactivateMouse();
--- 91,95 ----
public static void toggleMouse() {
! if (mouse_avail) {
mouse_avail=false;
DeactivateMouse();
Index: Sys.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/sys/Sys.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Sys.java 9 Jul 2004 06:50:47 -0000 1.4
--- Sys.java 19 Jul 2004 19:22:57 -0000 1.5
***************
*** 26,43 ****
package jake2.sys;
- import java.io.File;
- import java.io.FilenameFilter;
- import java.util.regex.Pattern;
- import java.util.regex.PatternSyntaxException;
-
import jake2.Defines;
import jake2.Globals;
import jake2.client.CL;
- import jake2.game.Game;
- import jake2.game.game_export_t;
- import jake2.game.game_import_t;
import jake2.qcommon.Com;
import jake2.util.Lib;
/**
* Sys
--- 26,40 ----
package jake2.sys;
import jake2.Defines;
import jake2.Globals;
import jake2.client.CL;
import jake2.qcommon.Com;
import jake2.util.Lib;
+ import java.io.File;
+ import java.io.FilenameFilter;
+ import java.util.regex.Pattern;
+ import java.util.regex.PatternSyntaxException;
+
/**
* Sys
***************
*** 188,200 ****
}
! private static long secbase = 0;
public static int Milliseconds() {
! if (secbase == 0) {
! secbase = System.currentTimeMillis();
! return 0;
! }
!
! return Globals.curtime = (int) (System.currentTimeMillis() - secbase);
!
}
--- 185,191 ----
}
! private static long secbase = System.currentTimeMillis();
public static int Milliseconds() {
! return Globals.curtime = (int) (System.currentTimeMillis() - secbase);
}
|