PDA

Click to See Complete Forum and Search --> : Java3D?


Virtual24
Jan 12th, 2003, 01:50 PM
Would it be possible to write a 3d game just as fast as any other using java and java 3d( DirectX or OpenGL )... as opposed to c++ and DirectX( flat )???

CornedBee
Jan 13th, 2003, 05:22 AM
The graphics part would be only marginally slower (because most of Java3d is written in native code) but the game logic would be much slower because Java is slower in execution than native code.

Virtual24
Jan 13th, 2003, 02:37 PM
Say I would compile the java code to native code completely...? My only reason for using Java is because I like it better than the rest, not for portability.

CornedBee
Jan 13th, 2003, 11:21 PM
Then it would be nearly as fast. The only thing slowing it down would be many many useless virtual function calls, but a good compiler might even optimize some away (not likely though - too risky).