Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Game programming in Java ??



I've also profiled raw number crunching (floating point and integer
maths, array thrashing) in Java and VC++ and found the performance to be
very similar (for those tests, Java was about 80-105% the speed of C).
That means that unless you code very badly, there's no reason that your
game logic should go slow in Java.


Sounds too good to be true. And what kind of Java programming tools were you using? Compiled or JIT interpreted Java?


I'd also question this--un-JITted Java is almost always slower than
compiled C++.

un-JITed code, yes, but how many JVMs do not JIT the code?


The results shouldn't be suprising - the code is compiled on the fly and artithmetic and array processing are usually pretty simply things to apply sensible optimisations to.


I don't know what kind of games you create, but they may be totally inappropriate for Java, so your stance may be based on your games' genre. But Java is perfectly suitable for some types of game development--even some 3D games. But if you, say, develop FPS's or strategy games with super heavy-duty AI, C++ may be the only way to go. But don't assume that Java is inappropriate for ALL TYPES of game development.

Personally, I usually develop in C++ (okay, and C and C#), but I did
develop games professionaly in Java for a while. Most Java IDE's suck
compared to C++ ones,

Have you tried Eclipse? It really is awfully good (and free).






<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.