[java] Q on java performance

Started by
62 comments, last by Dansas 18 years, 8 months ago
i'm using Deitel's Java 2 Training Course and i was wondering about how fast the language was, at least relatively. Can anyone tell me how good of a game it can make(name a real game so i can get the idea; preferably a FPS)?
Advertisement
Well, you have an MMORPG called Runescape (www.runescape.com) which is 3d and runs in an applet. Also, I played DOOM-like & Quake3-like betas that have an excellent framerate. It comes down to one thing though: if you program good, your program will show it. If you program poorly, your program will show that, too.
Runescape is an extremely poor example of what Java can do nowadays.
I think this'll give you some idea:
http://192.18.37.44/forums/index.php?topic=9933.0
Undead Arena: http://home.halden.net/tombr/squareheads/squareheads.html
Jake2: http://www.bytonic.de/html/jake2.html
Tribal Trouble: http://www.oddlabs.com/tribaltrouble.php
2d games: http://www.puppygames.net/
Puzzle Pirates
Quote:Original post by rayce
i'm using Deitel's Java 2 Training Course and i was wondering about how fast the language was, at least relatively. Can anyone tell me how good of a game it can make(name a real game so i can get the idea; preferably a FPS)?


Silly question, it doesn't make sense. Java ranges from extremely slow, to pretty decent speed, depending on which VM, interpreter and/or compiler you use.
The speed is determined by the code that ends up being executed on the CPU, and that is not Java. A good compiler will turn Java code into efficient machine code, a bad one won't. And some will turn it into bytecode that runs on a VM.

Anyway, as the others have said, you can do some pretty decent things in Java.
Quote:Original post by Spoonbender
Quote:Original post by rayce
i'm using Deitel's Java 2 Training Course and i was wondering about how fast the language was, at least relatively. Can anyone tell me how good of a game it can make(name a real game so i can get the idea; preferably a FPS)?


Silly question, it doesn't make sense. Java ranges from extremely slow, to pretty decent speed, depending on which VM, interpreter and/or compiler you use.
The speed is determined by the code that ends up being executed on the CPU, and that is not Java. A good compiler will turn Java code into efficient machine code, a bad one won't. And some will turn it into bytecode that runs on a VM.

Anyway, as the others have said, you can do some pretty decent things in Java.


alright then; which ide is the best for java? i thought it was just an interpreted language...it can be compiled into machine code as well? so that means it does not need the VM to operate, like an .exe file?
Quote:Original post by Spoonbender
Quote:Original post by rayce
i'm using Deitel's Java 2 Training Course and i was wondering about how fast the language was, at least relatively. Can anyone tell me how good of a game it can make(name a real game so i can get the idea; preferably a FPS)?


Silly question, it doesn't make sense. Java ranges from extremely slow, to pretty decent speed, depending on which VM, interpreter and/or compiler you use.


And, let's not forget, how you write your code. :)
As others have said, most of the performance is directly related to the quality of the code. There are plenty of apps written for small devices like cell phones that are written in Java. They perform quite well in most cases, especially considering the limitations that are placed on them.

As for an IDE to use check out this topic.
I personally prefer Eclipse because it's nice on Windows.
that doenst answer my question. are some tools availiable out there that create java executables rather than using the virtual machine?

This topic is closed to new replies.

Advertisement