Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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 3809 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

« JGO Spiffy Duke »


Medals: 195
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2004-04-05 11: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

« JGO Spiffy Duke »


Medals: 195
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2004-04-05 15: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

Online Abuse

JGO Knight


Medals: 14


falling into the abyss of reality


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

Windowed mode vsync? cooool Shocked

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #3 - Posted 2004-04-05 18: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

« JGO Spiffy Duke »


Medals: 195
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2004-04-05 19: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.

 

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

The first screenshot will be displayed as a thumbnail.

xFryIx (60 views)
2014-11-13 12:34:49

digdugdiggy (39 views)
2014-11-12 21:11:50

digdugdiggy (32 views)
2014-11-12 21:10:15

digdugdiggy (28 views)
2014-11-12 21:09:33

kovacsa (50 views)
2014-11-07 19:57:14

TehJavaDev (54 views)
2014-11-03 22:04:50

BurntPizza (53 views)
2014-11-03 18:54:52

moogie (68 views)
2014-11-03 06:22:04

CopyableCougar4 (67 views)
2014-11-01 23:36:41

DarkCart (153 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!