Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Full screen and frame rate #467695
08/22/17 23:00
08/22/17 23:00
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I've noticed that my game's performance takes a hit if it is full screen. Is this normal?

Just wondering if there are any known solutions/causes for this behavior.

Re: Full screen and frame rate [Re: Dooley] #467696
08/23/17 02:03
08/23/17 02:03
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
If you are fragment bound, then increasing the resolution gives you worse FPS. However, in general it should get better because the OS can give your program full access to the GPU instead of having the window manager have to run the swapchain and have your program render into parts of it.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Full screen and frame rate [Re: WretchedSid] #467697
08/23/17 04:28
08/23/17 04:28
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Okay, I am not familiar with the term "fragment bound."

Re: Full screen and frame rate [Re: Dooley] #467706
08/23/17 20:22
08/23/17 20:22
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Fragment bound means that your GPU is maxed out rendering pixels. So with DX 9 you have basically two units at work: Vertex and fragment. You can be unbound by either, meaning that your GPU has no problem dealing with the amount of vertex and fragment operations thrown at it. If you are vertex bound it means that your GPU has too many vertex operations going for it and it can't rasterize all your polygons in time. If you are fragment bound, well, then it just can't draw enough.

There are multiple reasons you can run into either. For example you can easily be fragment bound if you are drawing things in a very stupid way. For example rendering a lot of geometry back to front. You will end up drawing all the geometry and a huge amount of it will be overdrawn by geometry that is in front of it, so you are wasting a lot time drawing pixels that are never seen. Not saying that that is your issue, but that's a very easy example of such a problem.

The point is, if you are fragment bound, rendering to a larger render target by switching to fullscreen isn't doing you much good. There was already a problem pushing pixels, and now you are pushing more of them.

Of course, you could also be vertex bound and now you need to rasterize more geometry. But in reality it is way easier to make a modern GPU fragment bound than vertex bound.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Full screen and frame rate [Re: WretchedSid] #467729
08/24/17 22:58
08/24/17 22:58
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Additionally, vsync is on in fullscreen mode and your framerate will be bound to the refresh rate of your monitor or integer dividers of that. On a 60Hz monitor that is 60, 60/2, 60/3 and so on.
When your game runs at let's say ~57 fps in windowed mode, the frames per second will jump down to 30 in fullscreen mode.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Full screen and frame rate [Re: Superku] #467730
08/24/17 22:59
08/24/17 22:59
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Very good point. As someone who routinely disables vsync, I completely forgot about that.

PS: Felix, come online on Skype, I forgot my ICQ password and I want to bug you about releasing Superku! grin


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Full screen and frame rate [Re: WretchedSid] #467732
08/25/17 05:03
08/25/17 05:03
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Oh boy, Skype is still a thing? shocked (Yeah I know, I'm using ICQ still as well.)
I will. (^o^) /


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Full screen and frame rate [Re: Superku] #467741
08/25/17 21:02
08/25/17 21:02
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Superku
Oh boy, Skype is still a thing?



Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Full screen and frame rate [Re: WretchedSid] #467756
08/27/17 16:58
08/27/17 16:58
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
d3d_triplebuffer = 1; <-- Seems to help. Thanks!

Re: Full screen and frame rate [Re: Dooley] #467762
08/27/17 23:01
08/27/17 23:01
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
In that case you did fall victim to VSync!


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1