Jump to content

  • Log In with Google      Sign In   
  • Create Account

[java] Realtime java


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Spyder   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 October 2000 - 08:29 AM

What will realtime java do for a java game? Will be faster to run?

Sponsor:

#2 Jerry Lynn   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 October 2000 - 09:32 AM

I would imagine that real time capabilities would have very little application in typical game development. Real time development becomes an issue when the computation of results in your code are dependant on a time factor. An example is a robotic arm that picks up a box from a conveyor. The code that controls that robot must instruct the movements so that the arm picks up the box exactly as the box moves beneath the platform. You can not have the instruction to move the robot arm occur early or late or the robot would miss. As you can imagine a typical Java VM does not allow the necessary control to manage code execution based on a reliable time table.

There is overhead involved with ensuring code executes according to a time table in a real time capable JVM. This overhead would probably decrease the performance of a game. Typically you want games to execute instructions as fast as possible, not according to a real-life time-table. Worse yet, this lost performance would more than likely not get you anything. You might be able to achieve more realism by adding real time features to a game, but the increased amount of realism is not going to be substantially noticeable versus a game engine that just simulates real time events. Further, the code that simulates real time events is going to have better performance.


#3 Spyder   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 October 2000 - 08:09 PM

ok, what can be done to speed up a java program in terms of OS and hardware? Is linux for instance faster than running in windows? Does java benefit from multiple processors etc.? Any other views/aspects that can increase speed?

#4 Jim_Ross   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 October 2000 - 03:42 AM

RT-Java will allow you to write air traffic control applications in java (basically).

To speed up your java programs you can either optimize your code, so that the outputted byte-code will run more efficiently on any platform, or experiment with different virtual machines. IBM is generally known to be the fastest on Win32 & GNU/Linux. Lastly there is JNI so that you can link with native libraries, but the overhead of JNI calls can offset the speed, unless you are use hardware acceleration in your native libraries.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS