Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Timing different in windowed mode  (Read 2451 times)

0 Members and 1 Guest are viewing this topic.

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Timing different in windowed mode
« on: July 11, 2009, 10:06:39 AM »

Hi all

Our game has several sequences (e.g. node changes, videos, audios etc.), the timings of which are mostly governed by Sleep(); statements. And in full screen, that works fine. But in a window, the timings go out the window, so to speak. Things like fades done by stepping the alpha value of a MakeRGBA through a for() loop, don't fade or fade so quickly as to ruin the effect. One audio that waits on a sleep before handing over to another - fine in full screen, but running in a window the audios overlap.

Anybody got round this? It's going to be important for some I suspect because of the Big Fish stipulation that all games must be able to run in a window.

Cheers
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Timing different in windowed mode
« Reply #1 on: July 11, 2009, 10:16:29 AM »

You are using too tiny sleep values. See this thread: http://forum.dead-code.org/index.php?topic=3432.0
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: Timing different in windowed mode
« Reply #2 on: July 11, 2009, 11:48:33 AM »

Thanks,

So that would explain the problem with the fades (255 to 0, step 1, so sleep is shorter than frame rate).

However I already know that if I use longer sleep values (some of these sleeps are tens of seconds to allow videos to run) then the timing will be out the other way. For example, the Sleep where the audio files overlap is 12,200ms - and that was simply copied from the length of the stream.

I'm not sure it's just about allowing for frame updates.



Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com
 

Page created in 0.037 seconds with 24 queries.