Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
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  
  60 fps normal?  (Read 1861 times)
0 Members and 1 Guest are viewing this topic.
Offline SpiritWolf

Senior Newbie




Java games rock!


« Posted 2005-08-07 23:04:25 »

Hello everyone.

I was wondering if I could get more then 60 fps with vsync enabled? One more question please, what is vsync and why without it do I get a lot of fps with everything very jerky?
Offline princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2005-08-07 23:57:03 »

Simply choose a displaymode with >60Hz. Vsync synchronizes the backbuffer flip or blit with the vertical blanking period of the monitor when the scanning electron beam is on its way back to the top of the monitor. If you disable vsync, you'll be doing the flip while the electron beam is still drawing the screen halfway down, causing the picture to change to the next frame in the middle, and this causes an ugly tearing effect.

Disabling vsync is more or less pointless for professional looking games - you use it to test performance.

Cas Smiley

Offline SpiritWolf

Senior Newbie




Java games rock!


« Reply #2 - Posted 2005-08-08 00:06:58 »

Thank you for the reply, this is very helpful!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline woogley
« Reply #3 - Posted 2005-08-08 01:46:52 »

what about LCDs? would vsync make no difference with those? (and therefore disabling it would give more FPS with no tearing penalty?)
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #4 - Posted 2005-08-08 02:53:08 »

The video data is still fed to the LCD display one pixel at a time in a top-down left-right order.  Therefore changing the frame while the data is being sent to the monitor will cause the same tearing effect.

Just because there is no electron beam sweeping the screen, doesn't mean that the data is not sent with essentially the same timing as it was when that was the case.

Using Vsync means that the frame remains the same until the whole frame is output, then it 'flips' to the next frame between the end of the previous frame and the beginning of the next frame.

Offline Aramaz

Junior Duke




Java Games Rock!


« Reply #5 - Posted 2005-08-11 13:09:22 »

I've never gotten sync to work good in Lwjgl... I get tears, and not smooth flowing graphics when I use sync...

without display sync it flows very good... and I don't see tear effects... Of course my game is flying around in space with alot of dark areas, I can imaging that you don't notice tear effects so much then... but even so with sync on it's a horrible experience...

Play XSW: www.xsw.se
Offline anarchotron

Junior Duke




...precious bodily fluids.


« Reply #6 - Posted 2005-08-11 15:14:41 »

I agree, I see tears with vsync on as well, although I haven't investigated if it happens 100% of the time.
Offline princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2005-08-11 21:04:54 »

You're almost certainly mistaken here. When sync is on, you don't get tearing. Only, there is no guarantee that when you set vsync on, that it actually is on. This isn't a fault of LWJGL, it's just the underlying OS's fault.

Cas Smiley

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.

theagentd (20 views)
2014-10-25 15:46:29

Longarmx (53 views)
2014-10-17 03:59:02

Norakomi (47 views)
2014-10-16 15:22:06

Norakomi (35 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (69 views)
2014-10-14 00:35:47

TehJavaDev (61 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (46 views)
2014-10-11 23:10:45
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!