views:

55

answers:

1

I created a Java game application in Eclipse yesterday. I transferred the files over to my school Unix account with Filezilla. Today, I'm in the school lab testing the game inside my unix account.

Here's the problem: everything ran fast and fine when I was on my laptop and in Eclipse.

Now: 1) The frame rate is about 1 per second. Even though it's supposed to be every 20ms.

2) The png's I used and that loaded fine in eclipse don't seem to appear.

** What can I do to fix these? Is there a way to change how fast my Unix account goes?**

+1  A: 

How do you connect to your unix account? Remote X or VNC or alike?

Does your unix machine has an accelerated graphics card?

What is your game doing? Is it graphical or CPU intensive or I/O intensive or ...?

Did you package it as a JAR file and did you use the ClassLoader to load your files? (e.g. MyGame.class.getResourceAsStream("myfile.png") Do not use File I/O to read such resources, e.g. avoid new File("./images/myfile.png")

Did you check the filenames, e.g. case-sensitivity of your unix's filesystem vs. the case-insensitivity of your Windows box.

How did you 'ensure' the frame rate of 20ms? Are you using Thread.sleep(), or did you use System.currentTimeMillis() or System.nanoTime()?

What versions of the Java runtime are you using? Is there a difference in 32bit vs. 64bit. A difference in -client mode versus -server mode of the JRE.

So many questions... so little answers...

mhaller