Giter Site home page Giter Site logo

gametechdev / flipmodeld3d12 Goto Github PK

View Code? Open in Web Editor NEW
76.0 76.0 21.0 32.97 MB

Interactive visualization for understanding swap chains in D3D12

Home Page: https://software.intel.com/en-us/articles/sample-application-for-direct3d-12-flip-model-swap-chains

License: Apache License 2.0

C++ 99.14% HLSL 0.86%

flipmodeld3d12's People

Contributors

codergirl42 avatar jdm3 avatar qfroemke avatar sfblackl-intel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipmodeld3d12's Issues

Device removal on SetStablePowerState even with developer mode enabled

(I've solved this issue, but it was annoying to investigate and the workaround is hiding on the DirectX Discord so I'm submitting this to help anyone else who runs into this.)

The sample crashes when enabling stable power state:

D3D12: Removing Device.
D3D12 ERROR: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the application has performed an illegal or undefined operation, and such a condition could not be returned to the application cleanly through a return code). [ EXECUTION ERROR #232: DEVICE_REMOVAL_PROCESS_AT_FAULT]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR EXECUTION #232: DEVICE_REMOVAL_PROCESS_AT_FAULT ]

If you disable breaking on errors, you get this additional message:

D3D12: SetStablePowerState is only available when developer mode is enabled.

However, you will get this error even if developer mode is enabled.

This is due to a bug in a recent Windows update, and Microsoft is aware of the issue. The workaround is to call D3D12EnableExperimentalFeatures before device creation. So in the context of this sample, add the following to sample_dx12.cpp:355:

D3D12EnableExperimentalFeatures(0, nullptr, nullptr, nullptr);

Vsync Issues

Hi,

I had been looking at the sample to get around a issue in my application. Unfortunately I am seeing it in this sample as well. The issue is that when running the application on a multi display configuration, it tends to be capped by the primary displays refresh rate even when in fullscreen mode. So if have two monitors with primary display running at 60Hz and the other at 144Hz, the application runs at 60Hz on both monitors.
Normally, I was expecting that moving to a window with a higher refersh rate monitor should mean frequent Vsyncs on it, and higher frame rate, but this is not noticed in this sample as well. I have had applications running with Windows SDK 8.0/DX11 that used to behave like that, but on windows sdk 10/DX12 I am having this issue. It would be helpful if you could point out any specific setting that I might be missing to achieve it on DX12. Or is it something expected though I haven't come across any limitation like that earlier?

Thanks,
Raj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.