Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: WME1 fork with VSync support  (Read 8337 times)

0 Members and 1 Guest are viewing this topic.

Sothoth

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • View Profile
WME1 fork with VSync support
« on: July 25, 2013, 11:02:19 PM »

Hi!

I've just create a fork of the Mnemonic repository in Bitbucket, and I've merge the VSync support from Kinjal sources (from http://kinjal.apeironstudios.com/wme-ke_v2.0_bin_src_26june2012.7z ).

The repository can be found in https://bitbucket.org/ricpelo/wme1 , and my addons/modifications are all in the "alphaaventuras" branch, in https://bitbucket.org/ricpelo/wme1/commits/branch/alphaaventuras .

I've tested it a bit and the VSync support works really good, as far as I can see. With VSync off, the mouse cursor has no lag in fullscreen and all seems to be more responsive. On the other hand, I can't see any perceptive lack of smoothness due to the lack of VSync.

I've tried even with some game demos, like Alpha Polaris, On The Track of Dinosaurs, or Face Noir, as well as the WME 3D demo (as you can see, all 2.5D games; I'm not interested on 2D games for now, sorry). All these games seems to be better with the VSync off.

The relevant commits are a4c53ab (VSync support) and 49cc9b1 (VSync = off by default).

DISCLAIMER! The above changes are totally untested apart from me, and I provide them without warranty of any kind. It's up to you if you use them. Hope this could be useful for somebody :)

Cheers!
Logged
Sorry for my poor English! :(

Sothoth

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • View Profile
Re: WME1 fork with VSync support
« Reply #1 on: July 25, 2013, 11:25:32 PM »

Oh... Interestingly, disabling VSync fixed the slow save & load issue I commented here: http://forum.dead-code.org/index.php?topic=5530.0 . Now, save and load works in fullscreen as fast as in windowed.
Logged
Sorry for my poor English! :(

Sothoth

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • View Profile
Re: WME1 fork with VSync support
« Reply #2 on: July 26, 2013, 09:44:16 AM »

More testing: the 2D wme_demo definitely shows smoother during scrolling scenes when VSync is off. The difference is not so big, but it is there. So I think the developer must choose between fast responsiveness vs smooth responsiveness. Anyway, the lack of smoothness is evident only on scrolling scenes, IMHO.

Just another 0,02 for the record ;)
Logged
Sorry for my poor English! :(

Django

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • View Profile
Re: WME1 fork with VSync support
« Reply #3 on: September 02, 2013, 06:57:38 PM »

Thanks, this is definitely useful.
Any chance to get a compiled version?
Logged

Sothoth

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • View Profile
Re: WME1 fork with VSync support
« Reply #4 on: September 02, 2013, 07:05:35 PM »

Thanks, this is definitely useful.
Any chance to get a compiled version?

Hi!

You can take a look at here:

https://dl.dropboxusercontent.com/u/183992/wme_D3D9.exe

That's my latest build. I've tested it against Avira & Malwarebytes, but please (disclaimer!) double-check you personally ;).

Hope this helps.
Logged
Sorry for my poor English! :(

Django

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • View Profile
Re: WME1 fork with VSync support
« Reply #5 on: September 03, 2013, 06:47:15 PM »

Works like a charm, thanks again!
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: WME1 fork with VSync support
« Reply #6 on: September 04, 2013, 01:54:28 AM »

I guess I am a little confused about the VSYNC thing and what it actually does with Wintermute. Can you explain and maybe post a before and after image? Thanks  ???
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WME1 fork with VSync support
« Reply #7 on: September 04, 2013, 07:28:08 AM »

Vsync (vertical synchronization) basically means, whether your video card waits until one frame is completely painted on screen, before starting to paint another frame.
If vsync is enabled, a new frame is painted immediately when it's ready, even though your monitor is still busy painting the previous frame. That means you can end up with half the screen containing the old frame and half the screen the new frame. In 3D games this results in the "tearing" effect, in 2D games it's typically not that apparent (unless the majority of the screen is changing).
The practical result is the game framerate. If vsync is enabled, the game is being slowed down by the monitor refresh rate (typically 60Hz, i.e. 60 frames per second). If vsync is disabled, the only limit is how fast the CPU and the videocard can produce new frames (and since WME scenes are usually not too complex, frames can be produced rather quickly).

In DirectX 8 the windowed mode used disabled vsync and full-screen mode used enabled vsync. In DirectX 9 the application can configure this, but by default WME uses the same settings as DX8 did for compatibility. The modification in this thread overrides this default setting.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.018 seconds with 20 queries.