javagaming.org has much stuff, I'm not sure if it's all pure java. Java itself is optimised for your specific PC, so it runs faster than generalised C, the problems are that it takes ages to just-in-time (JIT)compile each time the program runs and when a new object is loaded.
Also if you want speed then don't use java's libraries, they are bloated for function and compatability, not stripped for speed and RAM usage
So technically, java games should be faster than C/C++ games, it's just that java isn't designed with games in mind
If you really want fast, with no JIT time, try writing an assembly program for each platform/processor combination.
> javagaming.org has much stuff, I'm not sure if it's
> all pure java. Java itself is optimised for your
> specific PC,
Java *can* be optimised for your specific PC, its all down to the VM. It is only theoretical however, as there are no platform/processor specific optimisations I know of in Suns VM.
> so it runs faster than generalised C,
well written C will always be faster than Java.
> the problems are that it takes ages to just-in-time
> (JIT)compile each time the program runs and when a new
> object is loaded.
>
> Also if you want speed then don't use java's
> libraries, they are bloated for function and
> compatability, not stripped for speed and RAM usage
yeah, but the extensivness of the Java libraries is one of the languages major strengths - without them, there is even less reason to use Java over C[++].
>
> So technically, java games should be faster than C/C++
> games, it's just that java isn't designed with games
> in mind
'Java isn't designed' :]
>
> If you really want fast, with no JIT time, try writing
> an assembly program for each platform/processor
> combination.
fun fun fun
Existance proofs:
JAMID, J3D Grand Prix, RoboForge, GetAmped, Law and Order
The last three are all commercial releases. RoboForge and Get Amped have
received fantastic magazine reviews, Law and Order is in Beta. All but GetAmped use Java3D,
(GetAMped uses a OpenGl binding but otherwise is pure Java.)
By way of annecdotally answering your second question, We showed Java 3D Grand Prix (a game that loosk at elast as good as this year's GP game from EA) at CGDC running at 60fps on a 1.4 ghz machine with 256meg of memory (though it will work just as well in 128) and Geforce3 GTS.
The same machine ran JAMID at over 110fps.