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: screen scroll  (Read 5236 times)

0 Members and 2 Guests are viewing this topic.

hubertMichael

  • Regular poster
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 155
    • View Profile
    • Shadow Of Nebula - our point'n click adventure game
screen scroll
« on: April 25, 2012, 09:15:26 PM »

Hi

Another day, another problem :/

Why in full screen mode my screen scroll is much slower than in window mode?? Also my character walks much slower in fullscreen mode. Whole game run much slower...
Logged
Shadow Of Nebula fan page:

https://www.facebook.com/shadowofnebula

hubertMichael

  • Regular poster
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 155
    • View Profile
    • Shadow Of Nebula - our point'n click adventure game
Re: screen scroll
« Reply #1 on: April 25, 2012, 10:12:01 PM »

problem is with vsync. When I turn it off in graphic driver everything is ok.

But it can't be like this. I can't think about release a game with this problem. I need solution without playing with graphic drivers and wintermute doesn't has any option to disable vsync in fullscreen. I also can't understand why 60 fps in fullscreen mode isn't enough for 2d game?? Is it a bug?

Help because now I'm depressed...
Logged
Shadow Of Nebula fan page:

https://www.facebook.com/shadowofnebula

hubertMichael

  • Regular poster
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 155
    • View Profile
    • Shadow Of Nebula - our point'n click adventure game
Re: screen scroll
« Reply #2 on: April 25, 2012, 11:31:29 PM »

I hope that I'm wrong but it looks that there is bug in engine with Scene.ScrollSpeedX and Scene.ScrollSpeedY because it doesn't work in full screen mode. It works good in widowed mode but not in full screen mode.

Logged
Shadow Of Nebula fan page:

https://www.facebook.com/shadowofnebula

hubertMichael

  • Regular poster
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 155
    • View Profile
    • Shadow Of Nebula - our point'n click adventure game
Re: screen scroll
« Reply #3 on: April 25, 2012, 11:41:53 PM »

scroll fixed. In fullscreen mode ScrollPixelsX and ScrollPixelsY works nice.
Logged
Shadow Of Nebula fan page:

https://www.facebook.com/shadowofnebula

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: screen scroll
« Reply #4 on: April 26, 2012, 07:45:16 PM »

Just in case you missed that:

ScrollPixelsX means how many pixels to scroll after an anmount of milliseconds you define with ScrollSpeedX .

Of course ScrollSpeedX should be lower then the framerate. So if you use 60FPS as minimum framerate, you have to set ScrollSpeed to a value larger than ~16 ms, to avoid the effect you described above, and to avoid flickering or such effects.

Greets,

Spellbreaker
Logged

hubertMichael

  • Regular poster
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 155
    • View Profile
    • Shadow Of Nebula - our point'n click adventure game
Re: screen scroll
« Reply #5 on: April 26, 2012, 09:45:25 PM »

Yep, but this solves problem with scroll. Problem with whole game running much slower in full screen is still there. Game is 2d and with 60 FPS it should work very nice but isn't.
Logged
Shadow Of Nebula fan page:

https://www.facebook.com/shadowofnebula

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: screen scroll
« Reply #6 on: April 28, 2012, 04:56:49 PM »

I don't know. In our current Project, we scroll scenes when the actor is at a certain point ( e.g. actor can walk around without the scene scrolling, only if he gets too far to the right for example, the screen scrolls ). It's in 1280x800 and the scrolling is the same in fullscreen and in windowed mode. We did not change any of the scrollspeed parameters. So I don't know what the problem is in your case.

(Just for info: On my graphics card the windowed version runs with ~1500 FPS, in fullscreen it's vsynced ( 60 FPS ) )

Greets,

Spellbreaker
Logged
 

Page created in 0.133 seconds with 24 queries.