Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  Vertical Retrace Sync and PXLAB  (Read 2798 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Posted 2004-04-05 13:28:26 »

I was just considering breaking out my C++ and JNI to build a small library to allow me to call "waitForVerticalRetrace()" then it occured to me that someone might have already done this...

I found this:
http://www.uni-mannheim.de/fakul/psycho/irtel/pxlab/

Now it doesn't look very applicable til you did through the source and find VideoSync.java which is a native interface to support vsync on windows.

I'm about to contact the author about repackaging it, could someone who knows a bit more about Direct Draw take a look at the source and see if its actually makes sense? Wink

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2004-04-05 17:40:03 »

Oh well, here it is if anyone wants it.. I've repackaged it up a bit and stripped out anything that wasn't need to just do synchronisation.

http://www.newdawnsoftware.com/resources/pxsync/pxsync.zip

Contains source (Java and C) and binaries.

To wait for vertical retrace do:

1  
VideoSync.waitForEndOfVerticalBlank();


VideoSync exists in the "de.pxlab.pxl" package. Full credit to the pxlab authors who I haven't heard from yet. However, since its "Free Source" there shouldn't be any problem.

I've added it as an optional thing to Mini Adventure (i.e. you can turn it on in the options). Seems to work fine. Mini Adventure is webstartable if anyone would like to try it out. (http://www.newdawnsoftware.com/miniad)

Kev

Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Reply #2 - Posted 2004-04-05 20:05:33 »

Windowed mode vsync? cooool Shocked

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #3 - Posted 2004-04-05 20:09:13 »

There it is Shocked

Would be great if we could have such a thing in java in general (I mean in "pure" java).

弾幕 ☆ @mahonnaiseblog
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #4 - Posted 2004-04-05 21:27:29 »

Yeah, it would be wonderful.. I wouldn't have bothered if it was going to be in 1.5, but I haven't heard anything in that direction...

Solves one of my problems at least Smiley

Kev

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (108 views)
2013-05-17 21:29:12

alaslipknot (117 views)
2013-05-16 21:24:48

gouessej (146 views)
2013-05-16 00:53:38

gouessej (141 views)
2013-05-16 00:17:58

theagentd (154 views)
2013-05-15 15:01:13

theagentd (138 views)
2013-05-15 15:00:54

StreetDoggy (182 views)
2013-05-14 15:56:26

kutucuk (206 views)
2013-05-12 17:10:36

kutucuk (205 views)
2013-05-12 15:36:09

UnluckyDevil (212 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.091 seconds with 20 queries.