Giter VIP home page Giter VIP logo

Comments (3)

UsaidPro avatar UsaidPro commented on May 23, 2024 1

from d3dshot.

nbrochu avatar nbrochu commented on May 23, 2024

I think you will have issues with most screen capturing solutions, especially those that are closer to the metal and try to be efficient with resources when changing resolution once the context has been created.

The problem here is that by changing the resolution of a display, you invalidate the DXGI Output handle that has been acquired by D3DShot to capture stuff on that display. The handle is still valid for the desktop duplication API to use, but it's effectively a "zombie" display at that point and no new information can be returned (which you observed). The resolution-changed display effectively lives on as a new DXGI Output that you would have to detect and swap to seamlessly. This is not easy at all; not even sure it's possible.

Unfortunately, I don't think this is a reasonable issue to try and tackle. Did you accidentally stumble upon the behavior or is it part of your use case to change resolutions while capturing? Just curious.

from d3dshot.

nbrochu avatar nbrochu commented on May 23, 2024

I'll close this one. It'll remain searchable to help people stumbling upon a similar situation.

from d3dshot.

Related Issues (20)

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.