Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (775)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Coke and Code Racing - JPCT Test  (Read 23520 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2009-09-24 15:59:31 »

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

Offline Riven
Administrator

« JGO Overlord »


Medals: 1356
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2009-09-24 16:54:36 »

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%

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline pjt33

« JGO Spiffy Duke »


Medals: 40
Projects: 4
Exp: 7 years



« Reply #2 - Posted 2009-09-24 17:17:36 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline appel

JGO Wizard


Medals: 80
Projects: 4


I always win!


« Reply #3 - Posted 2009-09-24 17:19:37 »

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%
Offline gouessej
« Reply #4 - Posted 2009-09-24 18:24:13 »

Hi!

I get this when I leave the applet:
1  
2  
3  
4  
5  
6  
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.

Julien Gouesse | Personal blog | Website | Jogamp
Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2009-09-24 18:29:17 »

What machine Julien?

Thanks for the NPE, fixed locally.

Kev

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 123
Projects: 15


★★★★★


« Reply #6 - Posted 2009-09-24 18:51:43 »

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)
Offline JavaMan2

Senior Newbie





« Reply #7 - Posted 2009-09-24 19:11:08 »

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?

"Imagination is more important than knowledge"~Albert Einstein
Offline Mr. Gol

Senior Devvie


Medals: 1



« Reply #8 - Posted 2009-09-24 20:10:01 »

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 Smiley
Offline bobjob

JGO Knight


Medals: 12
Projects: 4


David A M


« Reply #9 - Posted 2009-09-24 20:59:40 »

very cool demo.
40: high
85: low


impressive little remote control car model.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #10 - Posted 2009-09-25 05:41:49 »

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

Offline Jono
« Reply #11 - Posted 2009-09-25 05:51:24 »

Athlon X2 4000+

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

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

JGO Coder


Medals: 12



« Reply #12 - Posted 2009-09-25 07:07:58 »

Core 2 Duo @2.8Ghz

Low : 80-110
High : 35-60
Offline Nate

« JGO Bitwise Duke »


Medals: 167
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #13 - Posted 2009-09-25 10:30:17 »

Intel Core i7 920 @ 2.8ghz (2.66 stock, not much of an overclock but whatever :p 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.

Offline zammbi

JGO Coder


Medals: 4



« Reply #14 - Posted 2009-09-25 11:38:50 »

Intel P8400 2.26GHz Duel core laptop.

low: 67-101 fps
85% cpu

high: 29-45 fps
90% cpu

Current project - Rename and Sort
Offline nlmueng

Junior Devvie





« Reply #15 - Posted 2009-09-25 12:25:04 »

Intel(R) Core(TM)2 Duo CPU     E6750  @ 2.66GHz J1PR

opensolaris

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

Offline teletubo
Global Moderator

JGO Wizard


Medals: 75
Projects: 4
Exp: 8 years



« Reply #16 - Posted 2009-09-25 12:38:58 »

Core 2 Duo @ 2.8GHz

55fps high / 110 fps low .


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 Smiley

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

Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #17 - Posted 2009-09-25 13:39:10 »

Nice!
Offline DzzD
« Reply #18 - Posted 2009-09-25 20:58:37 »

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







Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #19 - Posted 2009-09-25 22:09:13 »

Athlon X2 4000+

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

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

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

弾幕 ☆ @mahonnaiseblog
Offline Jono
« Reply #20 - Posted 2009-09-25 22:44:11 »

Got a X2 4200+ and I get:

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

I suggest to update Java.
I'm using Java 6 update 13 which isn't all that old.
Also, after checking more carefully, CPU use is actually at around 55% for low quality and up to 70% at high quality. So it is using two threads properly.
Offline EgonOlsen
« Reply #21 - Posted 2009-09-26 07:17:34 »

I'm using Java 6 update 13 which isn't all that old.
Also, after checking more carefully, CPU use is actually at around 55% for low quality and up to 70% at high quality. So it is using two threads properly.
Some systems (especially AGP based ones) suffer tremendously from this "bug": http://bugs.sun.com/view_bug.do?bug_id=6652116. One of my Athlon X2 based systems does so. Could be a problem in your case too, so that the actual rendering may be quite fast but copying the results to the screen is dog slow.

Offline gouessej
« Reply #22 - Posted 2009-09-26 09:33:57 »

What machine Julien?

Thanks for the NPE, fixed locally.

Kev
My crappy PC under Mandriva Linux 2007, AMD Sempron 2600+, 2 GB DDRAM.

Julien Gouesse | Personal blog | Website | Jogamp
Offline Jono
« Reply #23 - Posted 2009-09-26 23:33:38 »

Some systems (especially AGP based ones) suffer tremendously from this "bug": http://bugs.sun.com/view_bug.do?bug_id=6652116. One of my Athlon X2 based systems does so. Could be a problem in your case too, so that the actual rendering may be quite fast but copying the results to the screen is dog slow.
Something along these lines wouldn't surprise me, and it would explain why the cpus aren't under too much load. Probably not exactly this bug though, since I've got onboard graphics which will copy from main memory to main memory when drawing to screen.
Offline moogie

JGO Ninja


Medals: 16
Projects: 6
Exp: 10 years


Java games rock!


« Reply #24 - Posted 2009-09-27 06:47:55 »

Quote from: DzzD
remember me this game that I loved

<snip>

My brother and I loved playing this game (IronMan RunOut?? ) together. hmm.... this may be my inspiration for the next 4k comp Smiley


re performance:

E8400 @ 3Ghz win XP Java 1.6.0_13

High 75 fps
Low 170 fps

Java4k RIP 2014
Offline mh114

Junior Devvie





« Reply #25 - Posted 2009-09-27 08:30:56 »

Worked surprisingly well, considering this laptop ain't exactly a speed demon.. Smiley This will turn into a fun game, I'm sure.

Low quality: FPS varies between 31 - 49.
High quality: FPS varies between 15 - 21.

PC: Acer Extensa 5220, Celeron 540 @ 1.86 GHz, 2 GB of RAM. Windows 7 32-bit.

Offline martineriksen

Junior Devvie





« Reply #26 - Posted 2009-09-27 10:09:10 »

Missiles! Mines! Gatling guns!

Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #27 - Posted 2009-09-27 11:34:05 »

Thanks for all the testing. The game wasn't really intended to be a long term thing more a way of trying out JPCT again - I've got an RPG to be getting on with (which I'll post soon honest Wink).

However, thanks to all the positivity I think I'll try and find some more time for this one and at least get the original aims done!

Thanks again,

Kev

Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #28 - Posted 2009-09-29 19:06:53 »

Bit of an update:

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

Added:

5 Cars - each with different traits. Number 4 is my fave, nice and fast and super slippy.
5 Tracks - just whatever I felt like designing at the time.
Bridges
Speed Ramps
Menus and Stuff
Look ahead camera - lets you see ahead of the car, get a bit of warning about those corners.
Bug Fixes

Known Issues:

* If you jump off the track (by hitting a bridge) it's not handled. You either end up flying around or driving outside. Either way your only real option is press escape, go back to the menu and start afresh.
* Refresh issues, sometimes the applet thinks it doesn't need to update the whole screen, no idea why.
* There really isn't a goal atm.

Any comments, thoughts appreciated...

Kev

Offline DzzD
« Reply #29 - Posted 2009-09-29 20:51:41 »

near to be a finished game Smiley !

about feedbacks... hum... more than 100 fps in low quality but feel more like less than 25 (not smooth), at first I thought that the FPS counter was wrong but then it remember me a problem I got when I was doing a similar car demo wich was related to a camera movment that was not smoothly following the car and was making the whole appear not smooth, so you may have a problem in camera displacment ( and/or FPS counter ).

less importants points:
- when driving backward the direction should be reversed
- sometime car go throught jump or jump 10 times higher then it should : problem on collision detection, also response on wall collision is IMHO a bit too "hard" (not enought slide)
- camera show a too small part of the run this make driving very hard : camera should show more space front of the car.
- last but not least, I love thoses 3d models cars !!
 

Pages: [1] 2
  ignore  |  Print  
 
 

 
hadezbladez (40 views)
2018-11-16 13:46:03

hadezbladez (43 views)
2018-11-16 13:41:33

hadezbladez (23 views)
2018-11-16 13:35:35

hadezbladez (18 views)
2018-11-16 13:32:03

EgonOlsen (1894 views)
2018-06-10 19:43:48

EgonOlsen (1930 views)
2018-06-10 19:43:44

EgonOlsen (1285 views)
2018-06-10 19:43:20

DesertCoockie (1715 views)
2018-05-13 18:23:11

nelsongames (1403 views)
2018-04-24 18:15:36

nelsongames (2035 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!