Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Performance Tuning / Good RTree implementation? on: 2007-02-19 17:03:40
(sorry if this is the wrong place to ask this)

I'm looking for a stable, well-tested (and free!) R-Tree implementation.  I need to index a lot of line segments to find overlaps, my understanding is that even for one-dimensional range data R-Trees still have performance advantages - or is there a better way to do it?

Thanks for any info; I'd rather not have to do this myself.
2  Java Game APIs & Engines / Java 2D / Re: current state of 2D acceleration on: 2007-02-19 13:35:11
By the way drawing directly to screen destroys the opengl-backend's capability of Single-threaded-rendering.
So for comparison better draw to a VolatileImage and draw this one after the test has been finished.

Thanks for the tip - that made the opengl results another 15% faster.

This is a bit OT, but what's the correct way to use VolatileImage buffers?  Does it make sense to always allocate one just for the render and throw it away after copying to the screen?  Or is it expensive to allocate them?

Or should I render to the VI, copy to a regular image buffer before releasing it, and use that for double buffering? (so that a repaint never causes and unexpected, and expensive, render because the VI has been invalidated).

Thanks for the help.
3  Java Game APIs & Engines / Java 2D / Re: current state of 2D acceleration on: 2007-02-19 12:57:25
Giving it the ANTIALIAS_OFF rendering hint didn't seem to make  a difference.

You are right, it does seem that d3d should be on for win2k (I even glanced at the source for 1.6, seems to be on) - don't know why it's getting turned off.
4  Java Game APIs & Engines / Java 2D / Re: current state of 2D acceleration on: 2007-02-19 06:50:05
Ok, I've run some benchmarks, lets see if they make sense.

Very simple test - fill a 1024 x 768 panel with line segments 3 pixels tall (so, 262,144 segments total).

All tests were on win2k with the latest java 1.6; I ran everything a few times and picked representative numbers.

I first ran this on my (fairly uncommon) Matrox Parhelia 650:

Default (trace: DXDrawLine)
time: 2344, segs/s: 111836

-Dsun.java2d.d3d=true (trace: D3DDrawLine)
time: 4625, segs/s: 56679

-Dsun.java2d.noddraw=true (trace: sun.java2d.loops.DrawLine::DrawLine(OpaqueColor, SrcNoEa, AnyInt))
time: 375, segs/s: 699050

-Dsun.java2d.opengl=true just ran in software.

So turning on D3D halves the speed from the original DX, and software is 12 times faster than D3D?  Of course this card isn't supposed to do much 3D acceleration.

I am also not very familiar with the windows 3D APIs: what exactly is the difference between D3D and DX? I thought they were part of the same thing?
While playing around with the start-up options from my IDE, I also managed to run it in a mode that traced as ""Integer RGB DirectDraw", SrcNoEa, "Integer RGB DirectDraw")" - so DD, DX, and D3D are all different? (this ran a tiny bit slower than the DX).

I then figured I should run this on something that's a) more common, b) has decent 3D performance, and c) is far from the top of the line : GeForce2MX 200.

Default (trace: DXDrawLine)
time: 4438, segs/s: 59068

-Dsun.java2d.d3d=true (trace: D3DDrawLine)
time: 734, segs/s: 357144

-Dsun.java2d.noddraw=true (trace: sun.java2d.loops.DrawLine::DrawLine(OpaqueColor, SrcNoEa, AnyInt))
time: 250, segs/s: 1048576

-Dsun.java2d.opengl=true (trace: OGLDrawLine )
time: 141, segs/s: 1859177

So here at least D3D is 6 times faster than DX, but software is still 3 times faster, and OpenGL blows everything else away.

Is this a fair test for what I'm trying to do?
5  Java Game APIs & Engines / Java 2D / current state of 2D acceleration on: 2007-02-17 02:48:00
Sorry if this is overly vague (and probably gets asked a lot), but I've been reading around this for the last couple of hours, and am thoroughly confused.

Basically, my question is: what's the relative performance of the D3D and OpenGL pipelines?  I've been reading Chris and Chet's  blogs, and it seem that vast improvements have been made to the OpenGL pipeline in the last couple of years, but is that just catching up to what D3D has already been doing?  It's hard to get a head-to-head comparison.

What I'm doing is extremely simple in its graphical requirements: it's a data visualization application that just needs to draw a bunch of tiny (a couple of pixels) colored segments; the problem is that it needs to draw hundreds of thousands of them in real time.

I also understand that there are serious stability issues with OpenGL drivers - has it at least gotten to the point where it's worth giving it a shot?

Any advice is appreciated.
Pages: [1]
ivj94 (579 views)
2018-03-24 14:47:39

ivj94 (42 views)
2018-03-24 14:46:31

ivj94 (346 views)
2018-03-24 14:43:53

Solater (59 views)
2018-03-17 05:04:08

nelsongames (104 views)
2018-03-05 17:56:34

Gornova (122 views)
2018-03-02 22:15:33

buddyBro (665 views)
2018-02-28 16:59:18

buddyBro (89 views)
2018-02-28 16:45:17

xxMrPHDxx (491 views)
2017-12-31 17:17:51

xxMrPHDxx (727 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!