Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

PureGDK / Please include a EXCLUSIVE fullscreen option!

Author
Message
ale870
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location:
Posted: 3rd Feb 2012 12:27
Hello,

I really cannot understand why PureGDK, a great program for PureBasic, does not support Fullscreen exclusive mode.

I red some posts about this, but I need to highlight a real problem.

Many computers suffer for hi screen resolution.
It means I need to set lower resolutions to get acceptable performances.

Now, currently in pureGDK, I can get a "fake" full screen (window without borders). The final resolution is the same used by the desktop, and the game performance slow-down.

I cannot ask to the players to change windows resolution to get acceptable performances.

So please include a function to setup an exclusive fullscreen mode.

I made a test, with spinning cube:

fake fullscreen (640x480 -> 1680x1050): 280 fps
real full screen (640x480): 960 fps

Thank you.

--Alessandro
Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 3rd Feb 2012 17:10
Many times I was complain about resolutions , but I wasn't listened.

Except screen resolutions , will be great and original PureBasic Data , be compatible with DarkBasic data.
ale870
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location:
Posted: 3rd Feb 2012 18:11
This is a piece of text extracted from the original HELP online of Dark basic:

Quote: "Desktop Full screen

Be aware that running as DESKTOP and DESKTOPFULL means the application runs in windows mode stretched to the size of the desktop. You still have the option for full screen exclusive mode, as well as hidden mode and standard window mode. Be aware some older cards incur a performance penalty when stretching the contents of a window using the desktop rendering modes.
"


As you can read here, stretching mode could be a problem for older cards. I wish to add: even for cheap cards like the mounted in netbooks, or notebooks with intel 4m, intel g95, gma3150, etc....

That is a serious problem: I use puregdk for flexibility and performance, but I risk to loose hundred of FPS due to this incredible problem.

--Alessandro
Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 3rd Feb 2012 18:42
Quote: "I cannot ask to the players to change windows resolution to get acceptable performances."


How to > Basics for.. > Fundamentals

This is covered in How to change the resolution:

C++:



PureBasic:



ale870
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location:
Posted: 3rd Feb 2012 20:02 Edited at: 3rd Feb 2012 20:05
Thank you, it works.
I "merged" your suggestion with the trick to get a window borderless, so now I can get a real fullscreen, non-exclusive, with the requested REAL RESOLUTION. Furthermore in this way, even if I change Window resolution, the desktop icons are not moved.

I wish to share my final function with the community:




This is a complete example you can use to test performances based on the screen resolution:



Thank you!

--Alessandro
Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 3rd Feb 2012 20:23
Have fun. And be sure to read all of those fundamentals!

Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 4th Feb 2012 23:59
Thank you for this screen resolution functions , it will be very useful.

Login to post a reply

Server time is: 2024-11-17 22:48:08
Your offset time is: 2024-11-17 22:48:08