Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Two issues with version 1.6: Alt+Tab and VSync  (Read 4534 times)

0 Members and 1 Guest are viewing this topic.

Hajo

  • Newbie
  • *
  • Posts: 4
    • View Profile
Two issues with version 1.6: Alt+Tab and VSync
« on: February 03, 2011, 12:34:45 pm »
Hi!

I am experimenting with SFML.NET version 1.6 and recognized so far two shortcomings:

1. Alt+Tab does not act as expected.

2. I am not able to activate vsync by using ".UseVerticalSync(true);", but it is functioning when I force the graphics driver to do it. Strange as it is: When I use ".UseVerticalSync(false);", it is actually turned off, even when the graphics driver ist forced to use it.

Are these issues addressed in one of the later versions?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #1 on: February 03, 2011, 01:26:54 pm »
Quote
1. Alt+Tab does not act as expected.

What do you expect? What does it do?

Quote
2. I am not able to activate vsync by using ".UseVerticalSync(true);", but it is functioning when I force the graphics driver to do it. Strange as it is: When I use ".UseVerticalSync(false);", it is actually turned off, even when the graphics driver ist forced to use it.

When you're not forcing it in your driver, do you select instead "let the aplpication choose" or "force disable"? (just to be sure) ;)

Quote
Are these issues addressed in one of the later versions?

No. You're the first one to report them so far.
Laurent Gomila - SFML developer

Hajo

  • Newbie
  • *
  • Posts: 4
    • View Profile
Two issues with version 1.6: Alt+Tab and VSync
« Reply #2 on: February 03, 2011, 02:46:04 pm »
Quote from: "Laurent"
Quote
1. Alt+Tab does not act as expected.

What do you expect? What does it do?


I expect the application to minimize and the desktop to return with its original dimension, until I activate the application again. I should have mentioned that I am talking about a fullscreen application.

What happens is that the desktop is shown with the dimension of the SFML application, with the SFML application shown as a window.

Quote from: "Laurent"

Quote
2. I am not able to activate vsync by using ".UseVerticalSync(true);", but it is functioning when I force the graphics driver to do it. Strange as it is: When I use ".UseVerticalSync(false);", it is actually turned off, even when the graphics driver ist forced to use it.

When you're not forcing it in your driver, do you select instead "let the aplpication choose" or "force disable"? (just to be sure) ;)


You are right, I could have been more clear. I am using a german graphic driver and did not come up with a translation instantly. By not forcing I mean the "let the application choose" option.

Thanks for your interest!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #3 on: February 03, 2011, 03:23:48 pm »
Quote
I expect the application to minimize and the desktop to return with its original dimension, until I activate the application again. I should have mentioned that I am talking about a fullscreen application.

What happens is that the desktop is shown with the dimension of the SFML application, with the SFML application shown as a window.

I see. This problem should be fixed one day in SFML 2 (but maybe not 2.0).

Quote
You are right, I could have been more clear. I am using a german graphic driver and did not come up with a translation instantly. By not forcing I mean the "let the application choose" option.

This may be a driver issue, do you have the latest version of the driver?
Laurent Gomila - SFML developer

Hajo

  • Newbie
  • *
  • Posts: 4
    • View Profile
Two issues with version 1.6: Alt+Tab and VSync
« Reply #4 on: February 03, 2011, 03:52:48 pm »
Quote from: "Laurent"
Quote
I expect the application to minimize and the desktop to return with its original dimension, until I activate the application again. I should have mentioned that I am talking about a fullscreen application.

What happens is that the desktop is shown with the dimension of the SFML application, with the SFML application shown as a window.

I see. This problem should be fixed one day in SFML 2 (but maybe not 2.0).

Do you know if this is a problem within the c part or the c# part of SFML?

Quote from: "Laurent"

Quote
You are right, I could have been more clear. I am using a german graphic driver and did not come up with a translation instantly. By not forcing I mean the "let the application choose" option.

This may be a driver issue, do you have the latest version of the driver?

You are most probably right. The driver is obviously not working as aspected. I will try a different machine with a different chip later.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #5 on: February 03, 2011, 03:55:58 pm »
Quote
Do you know if this is a problem within the c part or the c# part of SFML?

The C++ part ;)
Or even the design part, since there's nothing in the SFML API to properly handle this.
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #6 on: February 03, 2011, 05:15:03 pm »
Quote from: "Laurent"
The C++ part ;)
Or even the design part, since there's nothing in the SFML API to properly handle this.

*as for Windows and Linux


 :P
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #7 on: February 03, 2011, 06:18:15 pm »
What happens on OS X?
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Two issues with version 1.6: Alt+Tab and VSync
« Reply #8 on: February 03, 2011, 06:25:10 pm »
Exactly what Hajo was expecting.

Note that this is not the default OS behavior, I've handled this manually. I don't remember whether I'd been talking to you about this, but it had seemed so obvious to me... :/


PS: as for SFML 1.x

Edit: was talking about the Alt+Tab thing.
Want to play movies in your SFML application? Check out sfeMovie!

Hajo

  • Newbie
  • *
  • Posts: 4
    • View Profile
Two issues with version 1.6: Alt+Tab and VSync
« Reply #9 on: February 04, 2011, 11:04:33 am »
On a different machine, UseVerticalSync(...) works as expected, no matter how I configure the driver.