Comments (2)
多出来的光标是录屏软件自己绘制的,和 #141 同一个原因。
Magpie 的工作原理是隐藏系统光标,并在缩放后的位置自行绘制。很多软件不检测系统光标是否被隐藏,主要原因是全局隐藏系统光标是很罕见的,API 也很偏门。Sunshine 之所以兼容,是因为它用了相对现代的 Desktop Duplication 捕获方式,其中有获取正确光标的接口;大多数录屏/串流软件可能还是使用陈旧的 GDI 来捕获,然后自作聪明的补上系统光标,于是同时存在 Magpie 和录屏软件绘制的两个光标。
隐藏光标的方式在 v0.6.1 中更改过: 9660416 ,旧版本使用了很危险且不可靠的方式来隐藏光标:
- 将全局系统光标替换为透明
- 注入游戏进程将游戏的自定义光标替换为透明
旧方案确实可以和录屏/串流软件兼容,因为光标被替换成了透明图像,它们自行绘制的光标也是不可见的。但旧方案存在两个严重的问题:
- 替换全局系统光标是危险的行为,一旦在退出缩放后未能还原,系统光标会一直不可见;相比之下现在使用的隐藏系统光标的 API(ShowSystemCursor 和 MagShowSystemCursor)会在 Magpie 退出甚至崩溃后自动恢复系统光标。
- 注入游戏进程的问题更多,一方面注入可能会失败(以前 hooke007 维护过一个支持的游戏的列表,相比之下新方案不存在不支持的游戏),而且无法用于有反作弊机制的游戏。
基于上述原因,我认为新方案比旧方案优越得多,新方案唯一的问题是不能和某些(但并非所有)第三方软件兼容,这是兼容性问题而不是 bug。这里有一个悖论:我们需要让游戏可以一如既往运行,但不想录屏软件也“一如既往”运行。Magpie 隐藏光标的方案无法被传统方式检测到,这对于游戏本身是好事,对于录屏/串流软件则是坏事,而前者显然重要得多。
我暂时找不到解决方案,双光标问题统一在 #141 讨论。
from magpie.
没事 我换个录制软件就好了。谢谢啦
from magpie.
Related Issues (20)
- CMAA2 Support
- 更新至0.11.0版本后,在打开magpie的情况下会导致很多gal的Direct3D报错无法启动,或是白屏 HOT 1
- 全屏状态也能套用锐化效果 HOT 2
- 建议开放更大的快捷键设置范围 HOT 11
- Magpie seems to run off cpu instead of GPU HOT 6
- Magpie stops scaling the game window HOT 7
- Black line at the bottom of the screen when using NNEDI3 HOT 2
- Magpie didn't upscalle screen to Fullscreen HOT 1
- Adding Linux Support HOT 1
- Adding static model support for ONNX build HOT 2
- Magpie doesn't scale at all HOT 9
- Cursor jumps to other monitor when hovering an overlayed window HOT 1
- Putting Reshade fx on magpie? HOT 1
- n卡截屏的问题 HOT 3
- 能否支持NVIDIA TrueHDR HOT 2
- 能否增加图像位移的功能 HOT 1
- magpie无法缩放窗口 HOT 1
- Return of the Incredible Machine: Contraptions HOT 2
- Which capture mode offer the best grafic quality. HOT 1
- Magpie does not scale the game... HOT 8
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 magpie.