Jump to content
  • Advertisement
Sign in to follow this  
rayce

[java] Q on java performance

This topic is 4856 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
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/

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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. :)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
that doenst answer my question. are some tools availiable out there that create java executables rather than using the virtual machine?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!