Coke and Code Racing - JPCT Test

I’ve been meaning to find some time to try out the software 3d renderer available for Java, mostly because I need more article content for my site :wink:

So… I thought I’d start with the original (as far as I’m concerned), JPCT by our very own EgonOlsen. I’ve started hacking together a little racing demo which probably won’t go anywhere but is intended to support:

  • 5 tracks
  • 5 cars
  • Online best runs
  • Playing against a ghost car of either you best or one of the top 5 on the server
  • Ramps and sci-fi esque tracks.

I’ve not got very far yet but I’d appreciate any performance tests people have time to do. I cajoled Egon into implementing multithreaded/core rendering for the software renderer so now it should take advantage of multiple cores.

You can try the applet here:

http://www.cokeandcode.com/applets/jpct

Cursors to drive around and F7 to toggle quality level.

If anyone how time please let me know roughly what framerate you’re getting in the two different quality modes (one has a nice smooth car, the other is a bit grainy) and on what machine.

Thanks very much!

Kev

Intel Dual core E2200 - 2.2GHz

Low Quality:
NORTH half of the map: 85fps
SOUTH half of the map: 60-70fps:
total CPU usage 75%

High Quality:
NORTH half of the map: 45fps
SOUTH half of the map: 33fps:
total CPU usage 85%

Intel 1.73GHz, single core.

Low quality: 30-40 fps most of the time, quite variable; lowest 19, highest 44.
High quality: 15-20 fps most of the time; lowest 10, highest 20.

Intel Quad core Q6600 - 2.6GHz

Low Quality:
NORTH half of the map: 75fps
SOUTH half of the map: 65fps:
total CPU usage 50%

High Quality:
NORTH half of the map: 35fps
SOUTH half of the map: 25fps:
total CPU usage 60%

Hi!

I get this when I leave the applet:

Exception in thread "Thread-8" java.lang.NullPointerException
	at com.threed.jpct.FrameBuffer.display(Unknown Source)
	at com.threed.jpct.FrameBuffer.display(Unknown Source)
	at com.threed.jpct.FrameBuffer.display(Unknown Source)
	at org.newdawn.jpct.RaceGame.loop(RaceGame.java:187)
	at org.newdawn.jpct.JPCTApplet$1.run(JPCTApplet.java:37)

but it works fine, between 8 and 11 FPS in high quality, between 17 and 24 FPS in low quality.

What machine Julien?

Thanks for the NPE, fixed locally.

Kev

very cool stuff, 130fps low quality (4 cores, 8 threads at 30-40% = 60-80% cpu usage, i think)

75fps high quality (8 threads at 40-50% each)

Pretty nice man: Awesome loading time!

Here
Intel Quad Core 2.66GHz
ATI Radeon HD 2600XT graphics card.

Low Quality:
137FPS

High Quality:
65FPS

And it doesn’t matter what quality mode I’m in, Processor load is around 50%. It varies going from 45-66. I got that stat from the task manager in Vista. I suppose that is the way to get that?

MacBook, 2.1 GHz Core 2 Duo, shitty Intel graphics card
High: 46 fps, low: 68 fps

The perspective in combination with the fact that you’re not able to actually see where you’re going… this really reminds me of Death Rally :slight_smile:

very cool demo.
40: high
85: low

impressive little remote control car model.

P4 3ghz,

50 at the start line, 35 at the other side of the track
22 at the start line, 17 at the other side of the track

HTH

Endolf

Athlon X2 4000+

Low: 30-40 fps
High: 18-25 fps

Seems to be single threaded - only 50% total was ever used.

Core 2 Duo @2.8Ghz

Low : 80-110
High : 35-60

Intel Core i7 920 @ 2.8ghz (2.66 stock, not much of an overclock but whatever :stuck_out_tongue: thought it was 3ghz but checked for this benchmark and found it at 2.8ghz under load, weird).

164 to 260 fps on low.
80 to 100 fps on high.

For some reason, the narrow part of the track causes low fps, the rest of the track is the higher number.

Intel P8400 2.26GHz Duel core laptop.

low: 67-101 fps
85% cpu

high: 29-45 fps
90% cpu

Intel® Core™2 Duo CPU E6750 @ 2.66GHz J1PR

opensolaris

75-110 75% cpu
30-55 75% cpu

Core 2 Duo @ 2.8GHz

55fps high / 110 fps low .

I’m pretty sure it was inspired by Rock n’ Roll Racing™, first because of the looks, then because of the title.

Nice!

run fine here, constant 66 FPS (25 for HQ) : dual core T7500 2.2Ghz / Vista / Java 6.14

remember me this game that I loved

http://www.fraserking.co.uk/arcade/screenshots/super-off-road-1.jpg

Got a X2 4200+ and I get:

low N|S: 56|73 (77%)
high N|S: 27|38 (72%)

I suggest to update Java.

Edit: @kev, add a cam which follows the car. :wink: