V-Sync locks the maximum framerate to the current refresh rate that your monitor is set to.
If you run a game at 100 fps with V-Sync on, but your refresh rate is 60hz - you will get a maximum of 60fps. If your refresh rate is 85, then your game will be locked to 85 fps.
It helps prevent screen tearing, which can happen if your game is running at a different FPS than your refresh rate is set to (ie: they aren't in sync with each other. I believe it only works while in full screen as well.
Technical definition "Vertical synchronization is an option found in most systems, wherein the video card is prevented from doing anything visible to the display memory until after the monitor has finished its current refresh cycle." - taken from wikipedia.
I believe what I said is correct, but someone correct me if I'm wrong/left out any information.
My window size is 640 x 325. I chose a height of 325 instead of 480 to achieve a widescreen effect.
The "Resize Display To Fill Window Size" option stretches the 325 height to fill the height of the screen. No widescreen effect.
The "Change Resolution Mode" switches to the closet resolution supported by your monitor. For 640 x 325 this will be 640 x 480. A widescreen effect!
BUT! I have a whole bunch of fog, shadows and other transparency effects and the FPS has dropped from 50 to 35.
Unless I choose DIRECT3D 8 or 9. But neither of these support the "Change Resolution Mode".
I remember for TGF there was an extension that allowed changing the resolution with an event. Anybody remember what it was called?
*******
SO! I can either fix the frame rate, or use DIRECT3D and switch the resolution via and event.
I'm using HWA by the way. Any ideas? I can upload mfa if you like.
Perhaps this would be easier to try the other way around: I could make an example that works for me and you could try it out. I'll put something here later
V-sync actually works quite well outside of fullscreen. I notice a big difference in tearing in windowed mode when I enable V-sync.
What happens, Chris, is that without v-sync, a common issue where the videocard renders the game so fast that the monitor will actually display two frames at once - splitting it down somewhere in the middle. It's not too noticeable in slow games, but in fast games - for instance, playing Sonic 3 in an emulator (not advocating anything), you'll see a very subtle but annoying split down the center of the screen as you run really fast.
V-sync fixes this by slowing the game down syncing the framerate up with the monitor, keeping the graphics card from sending a split image to your monitor and makes animations much more fluid.
Originally Posted by SiLVERFIRE V-sync actually works quite well outside of fullscreen. I notice a big difference in tearing in windowed mode when I enable V-sync.
What happens, Chris, is that without v-sync, a common issue where the videocard renders the game so fast that the monitor will actually display two frames at once - splitting it down somewhere in the middle. It's not too noticeable in slow games, but in fast games - for instance, playing Sonic 3 in an emulator (not advocating anything), you'll see a very subtle but annoying split down the center of the screen as you run really fast.
V-sync fixes this by slowing the game down syncing the framerate up with the monitor, keeping the graphics card from sending a split image to your monitor and makes animations much more fluid.
V-Sync works as a framerate limiter in windowed mode.
One way or another, the ENTIRE point of V-sync is to prevent taring. The technical explanation of limiting frames is irrelevant unless someone specifically asks "Why is my game only going this fast?"
So to answer the question Chris asked, in the simplest possible way...
When you enable v-sync, you're preventing screen tearing, ultimately smoothing out the framerate.
Fullscreened, windowed, whatever, this is how it works. At least this is how it should work, whether or not Clickteam did it correctly... is a different question entirely.
V-Sync only works in full-screen because windowed apps don't have control over the screen controls/buffer. A lot of video cards have a v-sync option that is on by default that you can toggle in its control panel/center, but I'm still not sure if that even affects windowed apps though.
When I run the exe file, it goes full screen and looks great.
When I open the mfa file and click the "Run Application" button, full screen doesn't work. Like in the screenshot below.
Also, if I rebuild the exe file from the mfa file, full screen doesn't work.
It could be my copy of MMF2 that's doing it. Any ideas?
I couldn't open your example file. MMF2 still complains that CharImage isn't found. I've been having a few problems recently with extensions so this problem could be at my side. If you feel like making another example with the charimage object removed I could try that, but I don't think I can do more than test it out and tell you what happened.
It already sounds like your computer is displaying things differently to mine. I get fullscreen with widescreen letterbox borders whether I run the exe or run it from within MMF2. Sorry I couldn't be more help. Has anyone else tried running these files?
As for V-sync, use it if you're having major problems with screen tearing but otherwise it'll just make your game slower.
Thanks Nim for trying to help but I think you're right. My computer is already displaying things differently to yours.
When I open the file you made for me in MMF I can't get fullscreen, while you can. So it is either my graphics card or my MMF. The exe file runs fine so I'm pretty confident it isn't my graphics card and that it is my MMF. I think I'll try re-installing it. Thanks for your help!
Hmm interesting problem. Oh and about that v-sync, you can split your render and game update logic so you're game will go faster but the fps is untouched.
For HoogHaar XL I seem to have used the "display properties extension" for resizing, not sure it will help you achieve the effect you need or that it works with the new MMF. It was designed and programmed by Mike Johnson according to the info box.
Perhaps you could compare your graphics cards, driver information and operating system (windows version). That should help you guys getting things clearer and perhaps I can help testing with the exe files, so you now how runs on the machine of the end-user.
Originally Posted by GamesterXIII V-Sync only works in full-screen because windowed apps don't have control over the screen controls/buffer. A lot of video cards have a v-sync option that is on by default that you can toggle in its control panel/center, but I'm still not sure if that even affects windowed apps though.
Correction, V-Sync may not sync the framerate and the monitor.. however it DOES fix tearing. I've seen it. I've made applications where, in Windowed mode, I've noticed a significant difference between V-Sync on and V-Sync on.
Thanks Jenswa! Yeah I remember the Display Properties extension. I found another similar extension for MMF2 and they both have the same problem that if you're game crashes, the original resolution isn't restored. It is very annoying when everything on you screen is giant and you have to change it back.
If you still want to help, you can try this for me.
There is an EXE file which I've compiled on my computer in "DIRECT3D" and with "Change Resolution Mode" enabled. According to everybody who's been posting here, it should be full screen. Which it isn't. Is it for you?
Also! Try open the MFA file and see if it goes fullscreen for you from there. And maybe try building it to EXE and upload it and see if I can see it as full screen.
If you have time and can be bothered doing that for me that would be amazing! Thanks Jenswa! Have a good one.
V-sync disabled will let you graphics card produce the maximum number of frames per second which may be perhaps more than your monitor can handle and therefore can go out of sync.
V-sync enabled will let you graphics card produce more or less of the same number of frames per second, but will only send a completed frame when the monitor is asking for it and therefore limiting your fps.
Here is my test result with the exe file:
It's kinda fullscreen, because it uses all of my pixels but then leaves the windows taskbar over the game and it doesn't seem to resize. So it's not working for me.
Sorry don't have MMF2, just the TGF2 Newsgrounds build but that one doesn't support alpha channels in images and I should have installed the extension. So I can only build swf files.
Edit:
Hmmm funny, the widescreentest doesn't work at all for me. Well it starts, takes up an application spot in windows, but it doesn't display anything.