Author Topic: Multithread/Multicore Software Rendering?  (Read 13803 times)

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Multithread/Multicore Software Rendering?
« Reply #15 on: September 24, 2009, 04:21:29 am »
Woah, some that is awesome, and it should only get better as Intel and AMD make more core processors!
« Last Edit: September 24, 2009, 04:24:12 am by JavaMan »

Offline kevglass

  • byte
  • *
  • Posts: 13
    • View Profile
Re: Multithread/Multicore Software Rendering?
« Reply #16 on: September 24, 2009, 09:08:57 pm »
I've cross posted this onto JGO to try and get more performance figures:

http://www.javagaming.org/index.php/topic,21275

Kev

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Multithread/Multicore Software Rendering?
« Reply #17 on: September 24, 2009, 10:52:50 pm »
Great. I'm very interested in those numbers myself. I have (Core2 Quad @ 3.2Ghz) 160fps in low and 95fps in high quality mode with an average load of around 60% (around 70% in high quality mode). I tried to improve some things, reduced the threading framework's overhead and added an option to blit the rendered image to screen in multiple threads, but both changes don't really cut it, which is why i haven't updated the uploaded version right now.
« Last Edit: September 24, 2009, 10:59:45 pm by EgonOlsen »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Multithread/Multicore Software Rendering?
« Reply #18 on: September 27, 2009, 01:21:13 pm »
Ok, i've uploaded another beta here: http://www.jpct.net/download/beta/jpctapi_119pre2_5.zip
It uses less worker threads spawned by the threading framework to do the same amount of work, i.e. it creates a little less overhead and it has an option to do multi threaded blitting, which i thought that it was a good idea, but it doesn't seem to cut it. Enable it with Config.useMultiThreadedBlitting=true;
In addition, it adds multi threading to the per-pixel fog processing of the software renderer.
« Last Edit: September 27, 2009, 01:28:31 pm by EgonOlsen »

Offline kevglass

  • byte
  • *
  • Posts: 13
    • View Profile
Re: Multithread/Multicore Software Rendering?
« Reply #19 on: September 27, 2009, 09:39:25 pm »
Not much change here. However, I did get 10fps or so from  using indoor mode and no zbuffer clearing (since my game fills the screen with polys).

Kev

Offline kevglass

  • byte
  • *
  • Posts: 13
    • View Profile
Re: Multithread/Multicore Software Rendering?
« Reply #20 on: September 29, 2009, 09:15:34 pm »
Made a update to the "game" today to add more tracks/cars etc. It's just getting out of hand:

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

Kev

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Multithread/Multicore Software Rendering?
« Reply #21 on: September 29, 2009, 10:24:23 pm »
Nice! It takes some time to get used to the limited view. But after a couple of rounds, it plays pretty well.

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Multithread/Multicore Software Rendering?
« Reply #22 on: September 30, 2009, 01:50:59 am »
Cool dude! I really like how the car slows down when I release the gas. Maybe your previous version was like that, but I really noticed it this time.
Amazing this is in software.  ;D And, great startup time. You could teach Sun a thing or two on the Java user experience.  ;), since they still haven't got it down yet: http://javafx.com/samples/