Project

General

Profile

Actions

Emulator Issues #12390

closed

D3D11 halfs framerate in windowed mode

Added by Miksel12 over 3 years ago. Updated almost 3 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Any game

What's the problem? Describe what went wrong.

The first thing I noticed a while ago is that in windowed mode, the max fps is limited by the refresh rate of my monitor (144Hz). I don't remember seeing this behaviour before but when I tested 5.0, I got the same result so I guess this could be a change in Windows. This causes the framerate to limited at half the refresh rate (72Hz) when a game shows duplicate frames and Dolphin is configured to show them.
But D3D11 seems to half that in windowed mode. The full framerate I get is 36fps in windowed mode. That means that when a game has duplicate frames and Dolphin shows duplicate frames and runs in windowed mode, the max fps I get on my 144Hz screen is 18fps.
BTW: All games run at 300+fps when in fullscreen.

What steps will reproduce the problem?

Running D3D11 in windowed mode, enable present duplicate frames for extra slowdown(only if a game actually shows duplicate frames).

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

5.0-13493

Is the issue present in the latest stable version?

No

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)

I first got 5.0-11524 as bisect(the adition of present duplicate frames) but later found out this isn't the reason why D3D11 runs at half speed compared to the rest.
I don't have the time right now to further bisect but 5.0-8828 had the issue.

If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer

[Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.]

What are your PC specifications? (CPU, GPU, Operating System, more)

r5 3600, GTX 1060, W10

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

[Anything else here]

Actions #1

Updated by Miksel12 over 3 years ago

Actually it is only a quarter of the speed compared to the other backends.

Actions #2

Updated by JMC4789 over 3 years ago

Probably a DWM vsync issue.

Actions #3

Updated by Miksel12 over 3 years ago

If it was a DWM issue, I'd expect D3D12 to also have the issue.

Actions #4

Updated by ZephyrSurfer almost 3 years ago

What may be relevant is driver version.

With Nvidia driver 461.09 and later it can use MPO so finally a windowed application can skip the desktop compositor.
https://nvidia.custhelp.com/app/answers/detail/a_id/5159/~/v-sync-off-not-recommended-as-a-global-setting-starting-with-driver-version

Can you try your current version when windowed mode Dolphin is the active window and again when it's not the active window.

And try with the later Nvidia >= 461.09 with the the same steps above. (Try Nvidia V-sync controls forcing off if behaviour doesn't change)

Actions #5

Updated by Miksel12 almost 3 years ago

I'm already on 465 and it seems to be fixed. So yeah, this was definitely a driver issue and can be closed.

Actions #6

Updated by Miksel12 almost 3 years ago

Which is weird btw because it didn't happen on some very old build but oh well.

Actions #7

Updated by JMC4789 almost 3 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom PDF