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: FPS in FullScreen  (Read 2491 times)

0 Members and 1 Guest are viewing this topic.

vpin

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
FPS in FullScreen
« on: October 09, 2009, 10:18:38 AM »

At the game start in full screen mode, I observe a fixed fps - the game is retarding much,
even the cursor movement occurs with a noticeable lag.
In case we establish the flag Use Direct3D  and disable the vertical sync (vsync) in the video settings,
everything is fine!

Has anyone solved the problem  how to disable the vertical sync,
without changing of the video card's options?
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1454
  • Lamp dog!
    • View Profile
Re: FPS in FullScreen
« Reply #1 on: October 09, 2009, 11:16:56 AM »

WME doesn't set vsync on/off. It should be possible if anyone is willing to contribute the sources for that (note that not even that will work 100% of the times since you can force vsync on in some gpu drivers).
Logged
fl*p

vpin

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: FPS in FullScreen
« Reply #2 on: October 09, 2009, 02:04:17 PM »

I've researched this problem a little.
Before initializing D3DDevice, you must assign the fields structure D3DPRESENT_PARAMETERS following values
g_d3d9Parameters.SwapEffect             = D3DSWAPEFFECT_COPY;
g_d3d9Parameters.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
This disables vertical sync in DirectX 9

http://www.devmaster.net/forums/showthread.php?t=5577
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: FPS in FullScreen
« Reply #3 on: October 09, 2009, 08:11:48 PM »

Disabling VSync yourself is not a good Idea, because it's for a good reason. That simply means most people with TFT Screens want VSync to avoid flickering.

With 60FPS (60Hz) or 100FPS ( 100Hz ) your game should run perfectly smooth.
Logged

vpin

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: FPS in FullScreen
« Reply #4 on: October 12, 2009, 07:51:54 AM »

And what if to turn off the vertical synchronization only in fullScreen mode
for all the operating time of the game and by the switched on  Direct3D?
It would be wonderful, if the similar settings appeared in WME.
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: FPS in FullScreen
« Reply #5 on: October 12, 2009, 01:08:14 PM »

Why don't you let the user decide that, using the GPU Settings? If you turn it off yourself, most TFT users today will complain about your flickering Game...
Logged

vpin

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: FPS in FullScreen
« Reply #6 on: October 13, 2009, 08:10:51 AM »

Ok. Forget about the synchronization.
But the problem still remains.
Screen - 1024x768 resolution, fullScreen, cycle game_loop.script disabled (for testing) - cursor movement slowed.
What is possible to do here?
Logged
 

Page created in 0.13 seconds with 25 queries.