Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Leandro

Pages: [1]
1
Support / Re: Unexpected swing behavior
« on: June 04, 2009, 10:47:20 pm »
The version I'm using is Java6 Update 13.
I tried the "-Dsun.java2d.d3d=false" and the problem remains.

But I tried some different configurations and I found one that works: -Dsun.java2d.pmoffscreen=true

I'll take more information about this and try to understand what happens  :)

Thank you for your tip. It gave me a direction.

2
Support / SOLVED: Unexpected swing behavior
« on: June 04, 2009, 09:54:21 pm »
Quote
It seems to be a Linux (and Solaris) issue.

In some situations, Java was storing images on pixmaps instead of system memory.
The switch "-Dsun.java2d.pmoffscreen=true" force Java to don't use pixmaps.

Here are some useful links if anyone is experimenting this type of problem: http://java.sun.com/javase/6/docs/technotes/guides/2d/flags.html and http://java.sun.com/products/java-media/2D/perf_graphics.html

Now, lets go to the next round  :)


Hi,

I was doing some experiments. First I removed a lot of code of the fps demo except the fps (frames per second) measurement.
Everyhing works fine. I've got about 160...170 frames per second on a totally black screen at 640x480 using the software renderer.

Then I modified the code to render in a JPanel. Now I have a JPanel with exactly same size of the JFrame (640x480). Again, everything works as expected.

When I resized the screen vertically (i.e. dragging down the bottom border) showing a piece of the JFrame behind the panel, I have no problem and the fps are the same.

But...

If I resize the screen horizontally (i.e. dragging the right border), the fps drops to 80...85  :-[

In my tests, all the time I have a frame bigger than my rendering panel (but only if horizontally), the fps drops a half.

Anyone have an ideia about what could cause this problem?

Thank you,
Leandro

3
Support / Iniciando...
« on: November 05, 2006, 01:50:33 am »
Ok, the question is a very basic one, just like my english :oops:

From portugues to a I-keep-learning-english:

Quote

Hi, I am at the beginning of my work on 3D environments and I choose the JPCT engine to start. My question is:
How do I draw 2 cubes on the screen and detect their collision when I move one of that through the keyboard?


aguirmrc, I suggest you to download this demo: http://www.jpct.net/download/carbench.zip. Then "eat it"! See how the things are implemented, make changes in the source code and see what happens, etc.

Pages: [1]