Comments (3)
from d3dshot.
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.
I'll close this one. It'll remain searchable to help people stumbling upon a similar situation.
from d3dshot.
Related Issues (20)
- Support OpenCV Mat as a capture format HOT 2
- Code doesn't work HOT 2
- No way to delete D3DShot instance. HOT 1
- 1,000,000+ fps in screen capture HOT 2
- Slow performance HOT 3
- Support for resizing (downscaling) the output HOT 2
- It randomly raises an indexerror. HOT 1
- Create an anaconda package
- Bump pillow version for Python 3.9 support on Windows HOT 9
- Sceenshot active monitor
- Is this maintained? feature query HOT 1
- monitor resolution not detected properly HOT 2
- Errors in Virtual Machines
- Feature to wait for any change
- Does not work with games HOT 2
- Screenshot from wrong display is sometimes returned
- pip install d3dshot isn't working HOT 1
- Bug? D3Dshot continously giving lower frames when benchmarked HOT 1
- d3dshot.create() cant work HOT 1
- can't capture full screen game
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3dshot.