The Daily Click ::. Forums ::. Klik Coding Help ::. 2 HWA questions.
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
18th May, 2011 at 10:21:17 -

Sorry to noob the HECK out.

1. What happens when you enable "V-Sync"?

2. The "Change Resolution Mode" option does not work for "DIRECT3D 9" or "DIRECT3D 8". Is there a way around this?

Thanks guys

Edited by an Administrator

Admin Note
  Please watch your language :)


 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
18th May, 2011 at 15:06:40 -

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.



 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
18th May, 2011 at 20:35:47 -

Thank you GamesterXIII!

Anybody know anything about the "Change Resolution Mode" option not working for "DIRECT3D 9" or "DIRECT3D 8"?

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
19th May, 2011 at 00:52:20 -

Make sure that the resolution you are trying to change to is available for your monitor/video card.

Also Win 7/vista prevents the low resolution modes like 320x240 that klik games of old used to love.

So just use "resize display to fill window size" instead. Speed shouldn't be an issue if you are in HWA mode.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
19th May, 2011 at 11:11:18 -

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!

Image

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.

THANKS!

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
19th May, 2011 at 11:16:49 -

Plus "Resize Display To Fill Window Size" won't work in DIRECT3D either. Does it for anybody else?

 
n/a

nim



Registered
  17/05/2002
Points
  7233
19th May, 2011 at 13:10:34 -


Originally Posted by Chris Burrows

The "Resize Display To Fill Window Size" option stretches the 325 height to fill the height of the screen. No widescreen effect.



Have you tried using the Virtual Frame Height?

Set the Window size to 640 x 480
Set the Frame size to 640 x 325
Set the Virtual Height (frame properties) to 480
Enable "Change resolution mode"


I've just tried this with MMF2 and it worked for me: widescreen and fullscreen.

The frame rate might (might!) improve if it's not being stretched to fill the screen anymore.

I hope I've understood the problem. Hope this helps!

 
//

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
19th May, 2011 at 18:06:46 -

Thanks for the reply Nim.

Nah I hadn't tried that, but I just did and it made everything look wierd. Scrolling stopped working and it only showed a tiny portion of the screen.

It may just be my graphics card acting up. But here is the mfa and maybe somebody can look at it for me. There is a description on screen in the file.

Also, I'm not sure why the file size is so high. Maybe I have a too many transparent objects with alpha channels.

I know how people get on here when somebody wants help but their MFA has large file size so I'll try and make it smaller. But for now here it is:

http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/maybeyoucanhelp.mfa (6.7mb)

 
n/a

nim



Registered
  17/05/2002
Points
  7233
20th May, 2011 at 09:37:44 -

Needs CharImage.mfx but I can't find it anywhere.

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

Update: Try this - http://www.box.net/shared/g6y1lqyze9

Made using the technique I described above, with MMF2/HWA/DirectX9

This is what you should see:
Image

Edited by nim

 
//

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
21st May, 2011 at 07:37:44 -

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.

 
http://www.facebook.com/truediamondgame

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
22nd May, 2011 at 06:42:44 -

Thanks Nim!

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?

Image

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
22nd May, 2011 at 06:46:35 -

And here's the Character Image extension if you are interested. It is the best text blitting extension I've seen.

http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/CharacterImage.zip

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
23rd May, 2011 at 16:04:42 -


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.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
23rd May, 2011 at 22:50:51 -

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.

 
http://www.facebook.com/truediamondgame

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
24th May, 2011 at 14:14:54 -

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.



 
n/a

nim



Registered
  17/05/2002
Points
  7233
26th May, 2011 at 12:22:30 -


Originally Posted by Chris Burrows
Thanks Nim!

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.

 
//

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
26th May, 2011 at 15:11:17 -

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!

If you want the Char Image extension here it is: http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/CharacterImage.zip

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
30th May, 2011 at 19:58:35 -

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.

Have fun figuring it out, I am back to work now.

 
Image jenswa.neocities.org

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
30th May, 2011 at 21:24:12 -


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.

 
http://www.facebook.com/truediamondgame

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
31st May, 2011 at 11:12:37 -


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.

http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/fullscreenproblem.zip (mfa and exe file)

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.

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
31st May, 2011 at 19:42:19 -

To read some information on V-sync: http://www.tweakguides.com/Graphics_9.html

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:
Image

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.

Edited by Jenswa

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click