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
  49667

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
  7234
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
  7234
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
   

Post Reply



 



Advertisement

Worth A Click