Blinue / Magpie

An all-purpose window upscaler for Windows 10/11.
GNU General Public License v3.0
8.19k stars 459 forks source link

虚拟化环境中无法缩放 #921

Closed N83R7 closed 1 month ago

N83R7 commented 1 month ago

Magpie version 程序版本

v0.11.0

Windows version 系统版本

VMware win10 18363.1316

Related screenshot (optional) 相关截图(可选)

No response

Reproduction steps 复现步骤

每次缩放,尝试各种捕获方式都无效。

v0.10.6是可以正常使用的。

Log files 日志文件

2024-05-21 14:26:52.673|info|main.cpp:77|wWinMain|程序启动 版本: v0.11.0 管理员: 是 2024-05-21 14:26:52.734|info|AppSettings.cpp:231|Initialize|便携模式: 否 2024-05-21 14:26:56.407|info|ShortcutService.cpp:207|operator ()|热键 Scale 激活(Keyboard Hook) 2024-05-21 14:26:56.407|info|ScalingOptions.cpp:40|Log|缩放选项 IsWindowResizingDisabled: false IsDebugMode: false IsEffectCacheDisabled: false IsFontCacheDisabled: false IsSaveEffectSources: false IsWarningsAreErrors: false IsAllowScalingMaximized: true IsSimulateExclusiveFullscreen: false Is3DGameMode: false IsShowFPS: false IsCaptureTitleBar: false IsAdjustCursorSpeed: true IsDrawCursor: true IsDirectFlipDisabled: false IsStatisticsForDynamicDetectionEnabled: false IsTouchSupportEnabled: false cropping: 0,0,0,0 graphicsCard: -1 maxFrameRate: 30 cursorScaling: 1 captureMethod: 0 multiMonitorUsage: 0 cursorInterpolationMode: 0 duplicateFrameDetectionMode: 1 effects: Anime4K\Anime4K_Upscale_UL scalingType: 0 scale: 1,1 parameters: 无 Bicubic scalingType: 1 scale: 0.75,0.75 parameters: paramB: 0 paramC: 0.75 Anime4K\Anime4K_Upscale_UL scalingType: 0 scale: 1,1 parameters: 无 FSR\FSR_RCAS scalingType: 0 scale: 1,1 parameters: sharpness: 0.19999999 2024-05-21 14:26:56.407|info|ScalingWindow.cpp:167|Create|缩放窗口边界: 0,0,3840,2160 2024-05-21 14:26:56.411|info|DeviceResources.cpp:32|Initialize|可变刷新率支持: 是 2024-05-21 14:26:56.411|info|DeviceResources.cpp:32|Initialize|可变刷新率支持: 是 2024-05-21 14:26:56.414|info|DeviceResources.cpp:174|_TryCreateD3DDevice|已创建 D3D 设备 功能级别: 11.0 2024-05-21 14:26:56.414|info|Renderer.cpp:76|LogAdapter|当前图形适配器: VendorId: 0x15ad DeviceId: 0x405 Description: VMware SVGA 3D 2024-05-21 14:26:56.419|info|DeviceResources.cpp:174|_TryCreateD3DDevice|已创建 D3D 设备 功能级别: 11.0 2024-05-21 14:26:56.419|info|Renderer.cpp:426|_InitFrameSource|当前捕获模式: Graphics Capture 2024-05-21 14:26:56.462|info|Renderer.cpp:255|_CreateSwapChain|Multiplane Overlay 支持: 否 2024-05-21 14:26:56.470|info|GraphicsCaptureFrameSource.cpp:90|_Initialize|GraphicsCaptureFrameSource 初始化完成 2024-05-21 14:26:56.470|info|Renderer.cpp:434|_InitFrameSource|源窗口边界: 504,711,2040,1611 2024-05-21 14:26:56.470|info|Renderer.cpp:440|_InitFrameSource|捕获尺寸: 1536x900 2024-05-21 14:26:56.470|info|Win32Utils.cpp:155|ReadFile|读取文件: cache\FSR#FSR_RCAS_0ef072e4773ec0061 2024-05-21 14:26:56.471|info|EffectCacheManager.cpp:171|Load|已读取缓存 cache\FSR#FSR_RCAS_0ef072e4773ec0061 2024-05-21 14:26:56.471|info|Renderer.cpp:475|CompileEffect|编译 FSR\FSR_RCAS.hlsl 用时 0.87000006 毫秒 2024-05-21 14:26:56.977|info|EffectCacheManager.cpp:235|Save|已保存缓存 cache\Bicubic_02c2a5a3e5256f041 2024-05-21 14:26:56.977|info|Renderer.cpp:475|CompileEffect|编译 Bicubic.hlsl 用时 506.68002 毫秒 2024-05-21 14:26:56.999|info|EffectCacheManager.cpp:235|Save|已保存缓存 cache\Anime4K#Anime4K_Upscale_UL_0d8d080118c1562b0 2024-05-21 14:26:56.999|info|Renderer.cpp:475|CompileEffect|编译 Anime4K\Anime4K_Upscale_UL.hlsl 用时 529.06903 毫秒 2024-05-21 14:26:57.105|info|EffectCacheManager.cpp:235|Save|已保存缓存 cache\Anime4K#Anime4K_Upscale_UL_0d8d080118c1562b0 2024-05-21 14:26:57.105|info|Renderer.cpp:475|CompileEffect|编译 Anime4K\Anime4K_Upscale_UL.hlsl 用时 635.14105 毫秒 2024-05-21 14:26:57.105|info|Renderer.cpp:511|_BuildEffects|编译着色器总计用时 635.20905 毫秒 2024-05-21 14:26:57.420|info|EffectCacheManager.cpp:235|Save|已保存缓存 cache\Bicubic_1d7c0eb00db1be009 2024-05-21 14:26:57.420|info|Renderer.cpp:475|CompileEffect|编译 Bicubic.hlsl 用时 126.12401 毫秒 2024-05-21 14:26:57.425|error|Renderer.cpp:785|_InitBackend|CreateFence 失败 HRESULT: 0x80070057 2024-05-21 14:26:57.425|error|Renderer.cpp:99|Initialize|后端初始化失败 2024-05-21 14:26:57.425|error|ScalingWindow.cpp:236|Create|初始化 Renderer 失败

Blinue commented 1 month ago

CreateFence 返回 0x80070057,和 https://github.com/microsoft/terminal/issues/15601#issuecomment-1931021701 表现一样。可能 VMware 的驱动没有实现 Fence,这在真实的驱动中是不可能的。关于这个错误我们做不了什么,只能等待 VMware 更新。

BLACKCHARGE commented 1 month ago

wmware的3D驱动毛病是不少,虚拟机有显卡性能需求还是试试hyper-v的虚拟显卡吧,那个支持的很全,虽说配置很麻烦,但是3D性能支持很好