Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  High resolution timer  (Read 1657 times)
0 Members and 1 Guest are viewing this topic.
Offline kaffiene
« Posted 2003-08-01 10:39:35 »

One thing that Jogl needs is a high resolution timer.  Is there one available?  If not, I think one needs to be added.

There's J3DTimer in Java 3D, but it seems a shame to have to include all of j3d just to get access to the timer class :-)

Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-08-01 10:41:12 »

There are a selection of high resolution timers available as seperate libraries. The first that jumps to mind is GAGE, at:

http://java.dnsalias.com

Adding another probably isn't a good idea. There's also a hidden one in Java, but you'll ahve to search the forums to find a reference to that. Maybe they'll make it public in 1.5?

Kev

Offline kaffiene
« Reply #2 - Posted 2003-08-01 10:51:40 »

Quote
There are a selection of high resolution timers available as seperate libraries. The first that jumps to mind is GAGE, at:

http://java.dnsalias.com

Adding another probably isn't a good idea. There's also a hidden one in Java, but you'll ahve to search the forums to find a reference to that. Maybe they'll make it public in 1.5?

Kev


It would be nice to have one that is guaranteed available and portable.  Being in a third party package may fail on both those counts.      

In addition, high resolution timing is essential to 3d rendering, so I think it's pretty core to Jogl's aims (perhaps it could go in the util package instead?)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2003-08-01 11:01:19 »

The GAGE timer is guaranteed available, in that you can download it now and it will always be available to you. Its also as portable as JOGL, in that it works on the standard gaming OSes.

High resolution timing is essential to many things, putting it in every API that its essential to would create a maintainence nightmare.

Why implement yet another timer for the sake of it?

Kev

Offline kaffiene
« Reply #4 - Posted 2003-08-01 12:36:55 »

Quote
The GAGE timer is guaranteed available, in that you can download it now and it will always be available to you. Its also as portable as JOGL, in that it works on the standard gaming OSes.

High resolution timing is essential to many things, putting it in every API that its essential to would create a maintainence nightmare.

Why implement yet another timer for the sake of it?

Kev



GAGE is not guaranteed always available - the project could cease to be supported.

Additionally, if I distribute a Jogl application currently, I only need ensure that the user has Jogl installed - adding GAGE to the user instalation just to get a timer class is onerous.

Why implement a timer?  Because it is a core feature of any 3d engine.  It seems to me like the utils package is an obvious place for such a class.
Offline tortoise

Junior Member




<3 Shmups


« Reply #5 - Posted 2003-08-01 13:32:02 »

How high res do you want? A high res timer under windows is all of 15 lines of code, and all other OSes provide millisecond precision via currentTimeMillis(). Are you looking for better than that?

Gage's timer is offered in a seperate, and very small, package. Including it right within your application is pretty simple.

The only real solution to this is a high res timer as part of the core Java api, where it really belongs. Hopefully 1.5 will make this a reality. In the mean time I don't see an advantage to adding yet another timer to jogl.
Offline albanc

Senior Newbie





« Reply #6 - Posted 2003-08-01 13:49:48 »

Class demos.util.SystemTime in the JoGL demos package performs smoothing internally to avoid effects of poor granularity of currentTimeMillis on Windows platform in particular.

You may be interested to give it a try...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

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

MustardPeter (32 views)
2014-07-16 23:30:00

Cero (47 views)
2014-07-16 00:42:17

Riven (48 views)
2014-07-14 18:02:53

OpenGLShaders (38 views)
2014-07-14 16:23:47

Riven (37 views)
2014-07-14 11:51:35

quew8 (33 views)
2014-07-13 13:57:52
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!