microsoft / XboxGameBarSamples

Sample code for Xbox Game Bar Widgets
https://developer.microsoft.com/games/products/game-bar/
MIT License
145 stars 27 forks source link

[SDK BUG] Application not recognised as active even while active -> Causing frame rate issues #128

Closed HKS5 closed 11 months ago

HKS5 commented 11 months ago

Describe the bug I tried doing small plugin for my application for Xbox Game Bar, i am currently using DirectX11 to render the application on client. Decided to use raw D3D11 aswell for Xbox Game Bar, used the swapchain sample library from this repo. Turns out that the present is capped to 30FPS. Might this be a bug or is there reason for it being capped. I also noticed that when i attached debugger first and then opened the Game Bar there was no fps limit. I have tried Present with g sync and without, there is no difference

I can see that the Window created with XAML is working with full capabilities as it's moving smoothly, so this issue only is related to Win2D and DirectX rendering directly not XAML

To Reproduce Steps to reproduce the behavior:

  1. Go to UWP Xbox Swapchain Sample
  2. Compile
  3. Log the fps
  4. See the capped FPS

Desktop (please complete the following information):

HKS5 commented 11 months ago

After publishing the bug i realized that i had limited background app frame rate to 30 fps from Nvidia Control Panel.

Removing the Background App frame rate cap from Nvidia did fix the issue, but this is still bug as the current xbox game bar window should be recognised as active.

HKS5 commented 11 months ago

Closed