Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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 2057 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 Spiffy Duke »

Medals: 556
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 Devvie

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:
Offline anarchotron

Junior Devvie

...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 Spiffy Duke »

Medals: 556
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.

SHC (28 views)
2015-08-01 03:58:20

Jesse (20 views)
2015-07-29 04:35:27

Riven (40 views)
2015-07-27 16:38:00

Riven (22 views)
2015-07-27 15:35:20

Riven (25 views)
2015-07-27 12:26:13

Riven (15 views)
2015-07-27 12:23:39

BurntPizza (36 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (31 views)
2015-07-24 06:06:53

NoxInc (37 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!