Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 / What does -Xbatch do? on: 2004-05-31 08:53:16
From the Java docs,
Quote
-Xbatch
Disable background compilation. Normally the VM will compile the method as a background task, running the method in interpreter mode until the background compilation is finished. The -Xbatch flag disables background compilation so that compilation of all methods proceeds as a foreground task until completed.


So what does it actually do? If I pass the -Xbatch flag to the VM, will that mean it compiles everything before running? Or does the program hang for moments when the compilation is brought to the foreground?

I've tried passing it to some programs of mine but I've seen no noticable difference. The speed and all is still the same.
2  Game Development / Performance Tuning / Re: Java on OS X on: 2004-05-30 12:38:31
Quote


That would be because dotGNU is interpreted (eventually), whereas Java eventually compiles to native code, as does mono.


I've tried mono on Linux a few weeks back. Running Scimark on Mono is a joke. It provides performance about equal to the client VM(1.4.2_04) on my machine. Needless to say, the server VM mopped the floor with it.

And yes, I did enable the JIT, and passed all sorts of other optimization parameters. Not much diff.
3  Game Development / Performance Tuning / Re: Java on OS X on: 2004-05-30 12:36:07
Quote
Heh - the thing that's currently annoying me is how both Mozilla and FireBird/Fox will lock completely when you visit a page with a Java applet on it.  The browser freezes while the JVM starts, so several times a day I think "It's crashed!" followed five seconds later by "Oh, no, it's just Java starting."  It's not giving me a very good impression of Java, so god only knows what most users think.

My FireBird runs with the Click-to-play Flash movie extension, which is a godsend.  Now I want Click-to-play applet support!


That seems to be an inherent problem with Mozilla/Firebird's plug-ins. I get the same problem with Adobe Acrobat files, MS Word files, etc. And this is on an Athlon 64 with gigs of RAM so the machine ain't the issue.
4  Game Development / Performance Tuning / Re: Newton-Rhapson sqrt to lwgl math package?? on: 2004-05-30 12:30:47
Quote


Perhaps there is something in SSE2, which is included in the P4 but not the P3?

http://www.tommesani.com/InstructionSetCPU.html



The difference between the speed of the Math.sqrt on a P4 and P3 is probably due to the difference in the way the fsqrt opcode is implemented on the processors.

On the P4, the fsqrt instruction takes 38 clock ticks to complete while on the P3, it takes 57(!!) clock ticks. That would explain why you see much better results with Math.sqrt on a P4.

My guess is that the JVM emits an fsqrt instruction for each call to Math.sqrt. More information about the performance of these floating point instructions on various processors can be found at http://www.aceshardware.com/Spades/read.php?article_id=25000194
5  Java Game APIs & Engines / Java 2D / Enabling Direct3D with Java2D on: 2004-05-17 14:01:32
Is there any benefit to enabling Direct3D support for Java3D? I've tried enabling it and running the Java2D demo supplied with the SDK, but I've seen nothing different. The frame rates are still the same.

Anyone know why you'd want to enable Direct3D support for Java2D?
6  Game Development / Performance Tuning / Re: Java on OS X on: 2004-03-06 13:52:04
Thanks for all the replies.
7  Game Development / Performance Tuning / Re: Java on OS X on: 2004-03-04 11:18:25
A few years behind? I'm sorry, I don't quite understand that. OS X is at 1.4.2, and Windows is at 1.4.2 (if you disregard the 1.5 beta). Its a year behind, at the most.

There are nice things about Java on OS X, but performance doesn't seem to be one of them.
8  Game Development / Performance Tuning / Java on OS X on: 2004-03-04 10:28:51
How fast is Java on OS X? Taking a look at the Scimark benchmarks results, I see Apple's VM consistently giving results below the 100 mark, yet other VMs like Sun and IBM give very high results.

Now I know that Scimark is a microbenchmark of sorts and the usual caveats apply, but the results are still surprising.

Is there a problem with the Apple VM, or is it something to do with the PPC architecture?
9  Games Center / Archived Projects / Re: ALIEN FLUX 1.5 released - Special Offer! on: 2004-01-08 11:00:04
Ah.... don't worry. It works now.

I borked my system because I had initially installed LWJGL /System/Libraries/JavaVM.Framework/Versions/1.4.1/Libraries and  it probably wasn't configured right.

Deleting it from there allowed the game to run.

My bad Roll Eyes
10  Games Center / Archived Projects / Re: ALIEN FLUX 1.5 released - Special Offer! on: 2004-01-08 10:53:43
Yeah, I'm the same Viro.
11  Games Center / Archived Projects / Re: ALIEN FLUX 1.5 released - Special Offer! on: 2004-01-07 18:28:22
Just bought a copy. Now you can go get that take away and 6 pack Grin
12  Java Game APIs & Engines / JOGL Development / Re: JOGL with Java 1.4.2 DP2 (OS X) on: 2004-01-06 09:01:16
Well, I copied libjogl.jnilib to /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries. Unless there is a different place to copy them to, I don't think I'm doing anything wrong.

But it seems weird, as there doesn't seem to be a 1.4.1 directory anymore, and my guess is that Java 1.4.2 DP2 overwrote that?
13  Java Game APIs & Engines / OpenGL Development / Building LWJGL on: 2004-01-04 16:21:04
How do I recompile LWJGL from source? There doesn't seem to be a normal makefile (only a Makefile.am) in the directory.

The reason I'd like to do that is because I'm using Java 1.4.2 DP2 on OS X, and I'm having trouble with the liblwjgl.jnilib and I think it might be better if I recompiled it for use with Java 1.4.2.

So, how do I go about doing that?
14  Java Game APIs & Engines / OpenGL Development / Re: Compilation problems on OS X on: 2004-01-04 16:11:23
I can't seem to find the source for the examples shipped in lwjgl_test.jar. I've expanded the jar file, but all I found were .class files.

Looking at the source code of LWJGL doesn't yield any examples either. That tutorial really should be updated to reflect the changes in LWJGL, as it will spare newbies a lot of pain.
15  Java Game APIs & Engines / OpenGL Development / Compilation problems on OS X on: 2004-01-04 13:43:24
Hi, I'm having problems compiling the Game sample application on OS X. This was found at http://www.lwjgl.org/documents/tutorials/opengl/skeleton_code.html. It seems that a number of the methods that are used in Game aren't defined in lwjgl.jar (or in the source for that matter).

Consider the following from Game.java (line 23)
Quote

   //select above found displaymode
   Display.create(modes[mode], false);


It doesn't compile because it says that Display.create doesn't exist. I've downloaded the source for LWJGL, and looked through the entire org.lwjgl.Display class, and find no definition of the method at all.

There were 26 other errors. I'll include them below as they refer to methods that don't exist, or to trying to instantiate an abstract class. I'm not sure what's going on, but I'd be really grateful if someone could help.

p.s. Oh and by the way, the strange thing is that the compiled demo applications that are provided in lwjgl_test.jar seem to run fine. Huh

Quote

Game.java [23:1] cannot resolve symbol
symbol  : method create (org.lwjgl.DisplayMode,boolean)
location: class org.lwjgl.Display
           Display.create(modes[mode], false);
                  ^
Game.java [31:1] org.lwjgl.opengl.GL is abstract; cannot be instantiated
   public static final GL gl = new GL();
                               ^
Game.java [32:1] org.lwjgl.opengl.GLU is abstract; cannot be instantiated
   public static final GLU glu = new GLU(gl);
                                 ^
Game.java [36:1] cannot resolve symbol
symbol  : method create ()
location: class org.lwjgl.opengl.GL
           gl.create();
             ^
Game.java [66:1] cannot resolve symbol
symbol  : method swapBuffers ()
location: class org.lwjgl.opengl.GL
               gl.swapBuffers();
                 ^
Game.java [92:1] cannot resolve symbol
symbol  : variable COLOR_BUFFER_BIT
location: class org.lwjgl.opengl.GL
       gl.clear(GL.COLOR_BUFFER_BIT);
                  ^
Game.java [93:1] cannot resolve symbol
symbol  : method pushMatrix ()
location: class org.lwjgl.opengl.GL
       gl.pushMatrix();
         ^
Game.java [94:1] cannot resolve symbol
symbol  : method translatef (int,int,float)
location: class org.lwjgl.opengl.GL
       gl.translatef(Display.getWidth() / 2, Display.getHeight() / 2, 0.0f);
         ^
Game.java [95:1] cannot resolve symbol
symbol  : method rotatef (float,int,int,float)
location: class org.lwjgl.opengl.GL
       gl.rotatef(angle, 0, 0, 1.0f);
         ^
Game.java [96:1] cannot resolve symbol
symbol  : variable QUADS
location: class org.lwjgl.opengl.GL
       gl.begin(GL.QUADS); {
                  ^
Game.java [97:1] cannot resolve symbol
symbol  : method vertex2i (int,int)
location: class org.lwjgl.opengl.GL
           gl.vertex2i(-50, -50);
             ^
Game.java [98:1] cannot resolve symbol
symbol  : method vertex2i (int,int)
location: class org.lwjgl.opengl.GL
           gl.vertex2i(50, -50);
             ^
Game.java [99:1] cannot resolve symbol
symbol  : method vertex2i (int,int)
location: class org.lwjgl.opengl.GL
           gl.vertex2i(50, 50);
             ^
Game.java [100:1] cannot resolve symbol
symbol  : method vertex2i (int,int)
location: class org.lwjgl.opengl.GL
           gl.vertex2i(-50, 50);
             ^
Game.java [102:1] cannot resolve symbol
symbol  : method end ()
location: class org.lwjgl.opengl.GL
       gl.end();
         ^
Game.java [103:1] cannot resolve symbol
symbol  : method popMatrix ()
location: class org.lwjgl.opengl.GL
       gl.popMatrix();
         ^
Game.java [124:1] cannot resolve symbol
symbol  : variable PROJECTION
location: class org.lwjgl.opengl.GL
       gl.matrixMode(GL.PROJECTION);
                       ^
Game.java [125:1] cannot resolve symbol
symbol  : method loadIdentity ()
location: class org.lwjgl.opengl.GL
       gl.loadIdentity();
         ^
Game.java [126:1] cannot resolve symbol
symbol  : method ortho2D (int,int,int,int)
location: class org.lwjgl.opengl.GLU
       glu.ortho2D(0, Display.getWidth(), 0, Display.getHeight());
          ^
Game.java [127:1] cannot resolve symbol
symbol  : variable MODELVIEW
location: class org.lwjgl.opengl.GL
       gl.matrixMode(GL.MODELVIEW);
                       ^
Game.java [128:1] cannot resolve symbol
symbol  : method loadIdentity ()
location: class org.lwjgl.opengl.GL
       gl.loadIdentity();
         ^
Game.java [129:1] cannot resolve symbol
symbol  : method viewport (int,int,int,int)
location: class org.lwjgl.opengl.GL
       gl.viewport(0, 0, Display.getWidth(), Display.getHeight());
         ^
Game.java [134:1] cannot resolve symbol
symbol  : method getDirectBufferAddress (java.nio.ByteBuffer)
location: class org.lwjgl.Sys
       int buf_addr = Sys.getDirectBufferAddress(num_tex_units_buf);
                         ^
Game.java [135:1] cannot resolve symbol
symbol  : variable MAX_TEXTURE_UNITS_ARB
location: class org.lwjgl.opengl.GL
       gl.getIntegerv(GL.MAX_TEXTURE_UNITS_ARB, buf_addr);
                        ^
Game.java [146:1] cannot resolve symbol
symbol  : method destroy ()
location: class org.lwjgl.opengl.GL
       gl.destroy();
         ^
Game.java [147:1] cannot resolve symbol
symbol  : method destroy ()
location: class org.lwjgl.Display
       Display.destroy();
              ^
26 errors
Errors compiling Game.
16  Java Game APIs & Engines / JOGL Development / JOGL with Java 1.4.2 DP2 (OS X) on: 2004-01-04 13:05:16
Has anyone managed to get JOGL to work with Java 1.4.2 DP2 on OS X? I've just downloaded it and it seems to bomb with the following:

Quote

Exception in thread "main" java.lang.UnsatisfiedLinkError: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjogl.jnilib:
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:834)
       at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:60)
       at java.security.AccessController.doPrivileged(Native Method)
       at net.java.games.jogl.impl.NativeLibLoader.<clinit>(NativeLibLoader.java:46)
       at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51)
       at net.java.games.jogl.impl.macosx.MacOSXGLContextFactory.createGLContext(MacOSXGLContextFactory.java:52)
       at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:68)
       at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:117)
       at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80)
       at Rectangles.<init>(Rectangles.java:69)
       at Rectangles.main(Rectangles.java:21)


It used to work when I had 1.4.1 installed. I'm guessing that its got something to do with libjogl.jnilib that it may be in an incompatible format with java 1.4.2, but that's just a guess. Anyone able to help me out here?
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

E.R. Fleming (8 views)
2014-07-29 03:07:13

E.R. Fleming (4 views)
2014-07-29 03:06:25

pw (38 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!