javagames

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
OTL
Posts: 2
Joined: Thu May 15, 2008 1:59 pm 0

javagames

Post by OTL »

can i programme games in java ??
i mean like - is it fast enouhg? :skip: :sheep:
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: javagames

Post by RageMatrix »

Yup - Cas'll tell ya...

http://www.puppygames.net/
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
drz
Posts: 9
Joined: Thu May 08, 2008 6:50 pm 0
Location: Carpinteria, CA, USA
Contact:

Re: javagames

Post by drz »

You can program games in any language you like. Java is a good one, because it has a lot of helpful libraries for you to use. It would only be too slow if your game absolutely has to push the hardware to its very limits. But very few games fall into that category, and a single person is unlikely to have the time to complete a project like that. And in 1 year, what is the limit today, will be doable in Java.

Tim
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: javagames

Post by piku »

return (0);
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Re: javagames

Post by sack »

I've seen a PC emulator in Java doing a decent amount of knots. I think Java is pretty capable these days - I just prefer C++
User avatar
oNyx
Baaaaa!
Baaaaa!
Posts: 1652
Joined: Mon Sep 08, 2003 1:24 am 0
Location: de/fd

Re: javagames

Post by oNyx »

Wow... it's like 1998 all over again! :D

Java is plenty fast nowadays. Run of the mill code is pretty much on par with C++. And lets face the truth... the vast majority of code is like that.

Most games are GPU limited anyways. Often you won't notice anything if the logic runs 20 or even 50% slower.

To put things a bit into perspective - if you use an OpenGL binding a game like Metal Slug can run butter smooth on a 500mhz CPU. The same goes for the games you've seen on the N64. Those would run fine too (at 60fps). Nowadays 6 year old machines (the lowest of the low) are faster than that anyways. 200€ office machines for example have plenty of processing power (e.g. x2 4200+), insane amounts of ram (1gb+), and they often also have some semi usable GPU (e.g. ATI x1250).

So, as far as I'm concerned this really is plenty of processing power. It's enough to use spare cycles for ogg decoding or as a buffer for really sloppy programming.
Post Reply