Magpie Versions Save

An all-purpose window upscaler for Windows 10/11.

v0.11.0-preview1

3 weeks ago
中文版

这个预览版包含了一个全新的渲染系统,它已经开发了很久 #643,终于准备好和大家见面了。感谢在开发过程中提供无私帮助的贡献者们。

新功能

  1. 全新的渲染系统,大多数场合下都可以感知到流畅度提升,且特别针对重量级着色器优化
    • 实现了重复帧检测,当游戏画面静止时功耗将显著降低
    • 支持限制帧率 #657
    • 大幅提高光标的流畅度,在帧率较低时更加明显;光标延迟也显著降低
    • 不再支持垂直同步选项,该选项已经没有意义
  2. 原生 ARM64 支持 #308
  3. 优化了对窗口客户区域的检测,现在可以自动裁剪上边框 #864
  4. 优化了双线性插值下单色光标和彩色掩码光标的渲染效果 #855 #853
  5. 刷新了 UI 样式

新效果

  1. 大量 RAVU 和 NNEDI3 变体 (感谢 @hauuau) #806
  2. CuNNy 族,它们适合视觉小说风格画面,比 Anime4K 更擅长处理文本 (感谢 @cunnyplapper) #848
  3. Anime4K_Upscale_GAN_x3_L 和 Anime4K_Upscale_GAN_x2_M

修复

  1. 修复光标移动到叠加层或其他窗口时有时会跳跃的问题 #866
  2. 修复 Win11 中捕获标题栏时错误裁剪的问题 #864

其他更改

  1. 现在始终使用 Catmull-Rom 降采样,不再支持更改。
  2. 现在禁止缩放完整性级别更高的窗口。比如如果 Magpie 不是以管理员身份启动的,则无法缩放管理员身份的窗口 #867
  3. 更改了全局配置文件路径以避免混用两个版本时丢失设置项 #872

This preview version features a brand new rendering system that has been in development for quite some time #643, and is finally ready to be unveiled. We extend our gratitude to the contributors who generously assisted throughout the development process.

New Features

  1. A brand new rendering system, with noticeable improvements in fluidity in most scenarios, especially optimized for heavyweight shaders
    • Implemented frame duplication detection to reduce power consumption when the game screen is static
    • Support for frame rate limiting #657
    • Substantial improvement in cursor fluidity, particularly noticeable at lower frame rates; cursor latency also significantly reduced
    • Vsync option no longer supported, as it has become redundant
  2. Native ARM64 support #308
  3. Optimized detection of the window client area, now automatically cropping the top border #864
  4. Enhanced rendering effects for monochrome cursors and masked color cursors under bilinear interpolation #855 #853
  5. Refreshed UI style

New Effects

  1. A plethora of RAVU and NNEDI3 variants (thanks to @hauuau) #806.
  2. The CuNNy family, specialized for visual novel-style images, excelling in text handling compared to Anime4K (thanks to @cunnyplapper) #848
  3. Anime4K_Upscale_GAN_x3_L and Anime4K_Upscale_GAN_x2_M

Fixes

  1. Fixed an issue where the cursor would sometimes jump when hovering the overlay or other windows #866
  2. Fixed incorrect cropping when capturing title bar in Win11 #864

Other Changes

  1. Catmull-Rom downscaling is now consistently used, with no further modifications supported
  2. Windows with higher integrity levels are now prohibited from being scaled. For example, if Magpie is not launched with administrator privileges, it cannot scale windows with administrator privileges #867
  3. Changed the global configuration file path to avoid losing settings when using two versions simultaneously #872

onnx-preview1

1 month ago
中文版

一个支持 ONNX 模型的实验性版本,如果遇到任何问题请在 #772 中讨论。

如何使用

不支持通过 UI 指定 ONNX 模型,你应该编辑根目录中的 model.json

示例:

{
    "path": "2x_AnimeJaNai_HD_V3_UltraCompact_425k-fp16.onnx",
    "scale": 2,
    "backend": "directml"
}

path:ONNX 文件路径 scale:模型的缩放倍率,应和 ONNX 文件匹配,否则将缩放失败。只支持整数倍缩放。 backend:使用的推理后端,支持三种后端

  • directml,也可以简写为 d
  • tensorrt,也可以简写为 t
  • cuda,也可以简写为 c

缩放时会将该模型应用于第一个效果之前,目前没有方法来改变这个行为。

支持的 ONNX 模型

下面是流行的架构的支持情况:

架构 是否支持
CUGAN ×
ESRGAN
SPAN
WAIFU2X

为了在 Magpie 中使用,ONNX 模型必须符合以下要求:

  1. 输入和输出维度必须为 [-1, 3, -1, -1],数据格式必须为 NCHW。
  2. 输入和输出的数据类型支持 fp16 和 fp32,输入和输出的数据类型必须相同。
  3. 输出尺寸必须是输入的整数倍,对于所有尺寸的输入,缩放倍数应相同。

Magpie 使用 onnxruntime 执行推理,因此除了上述条件,该模型还必须被 onnxruntime 支持。

你可以在这里找到很多 ONNX 模型,其中 CUGAN 架构之外的模型都是可以使用的。OpenModelDB 也记录了大量模型。

推理后端选择

支持三种后端:DirectML,TensorRT 和 CUDA。在性能上,通常情况下 TensorRT > DirectML > CUDA。

  • DirectML:可以运行在所有支持 DirectX 12 的硬件上。如果你没有 NVIDIA 显卡,DirectML 便是唯一的选择。
  • TensorRT:可以运行在 Compute Capability 至少为 6.0 的 NVIDIA 显卡上。它的性能比其他两种后端强得多,但必须花费较长时间(几分钟)来构建引擎。为了获得更好的性能,在构建引擎期间请避免执行 GPU 密集型操作。
  • CUDA:可以运行在几乎所有 NVIDIA 显卡上,根据模型的不同,它的性能和 DirectML 互有胜负。

未来的开发计划

ONNX 支持将不会出现在下一个主要版本中。为了正式支持它,还有很多工作要做,包括导入、管理、优化 ONNX 模型,以及 UI 优化也在计划中。如果你有任何的想法、点子,欢迎和我们分享。

This is an experimental version with support for ONNX models. If you encounter any issues, please report them in #772.

How to Use

You cannot specify ONNX models using the UI. You need to modify the model.json file in the root directory.

Example:

{
    "path": "2x_AnimeJaNai_HD_V3_UltraCompact_425k-fp16.onnx",
    "scale": 2,
    "backend": "directml"
}

path: The location of the ONNX file. scale: The scaling factor of the model, which must be consistent with the ONNX file, or else scaling will fail. Only integer scaling is allowed. backend: The inference backend to use, which supports three options:

  • directml, also shortened as d
  • tensorrt, also shortened as t
  • cuda, also shortened as c

When scaling, the model will be applied before the first effect; there is no option to change this behavior at the moment.

ONNX Models Compatibility

The table below shows the compatibility with popular architectures:

Architecture Compatible
CUGAN ×
ESRGAN
SPAN
WAIFU2X

To run an ONNX model in Magpie, the model must follow these rules:

  1. Input and output dimensions must be [-1, 3, -1, -1], with data format NCHW.
  2. Input and output data must be either fp16 or fp32, and they must match.
  3. Output size must be a whole-number multiple of the input size, with the same scaling factors for all input sizes.

Magpie uses onnxruntime for inference, so the model must be compatible with onnxruntime, as well as the rules above.

You can access many ONNX models here, and all models except for the CUGAN architecture work. OpenModelDB also has a large database of models.

Backend Selection for Inference

You can choose from three backends: DirectML, TensorRT, and CUDA. They have different performance levels, with TensorRT being the fastest, followed by DirectML and CUDA.

  1. DirectML: Works on any hardware that supports DirectX 12. If you don't have an NVIDIA graphics card, this is your only choice.
  2. TensorRT: Requires an NVIDIA graphics card with a Compute Capability of at least 6.0. It has much better performance than the other two backends, but it takes a long time (several minutes) to build the engine. To get the best performance, don't do any GPU-intensive tasks while the engine is being built.
  3. CUDA: Supports almost all NVIDIA graphics cards, but its performance depends on the model and may be similar to DirectML.

Future Development Plans

We will not add ONNX support in the next major release. We still have a lot of work to do to fully support it, such as importing, managing, and optimizing ONNX models. If you have any ideas or suggestions, feel free to share them with us.

v0.10.6

1 month ago
中文版
  1. 修复打开游戏内叠加层可能导致崩溃的问题 #649 #840
  2. 修复找不到可用显卡时无法回退到 CPU 渲染的问题 #838 #839
  3. 更新翻译 #823 #824 #827 #834
  1. Fixed a crash caused by the in-game overlay #649 #840
  2. Fixed the inability to switch to CPU rendering when no compatible graphics card was detected #838 #839
  3. Updated translations for various languages #823 #824 #827 #834

v0.10.5

2 months ago
中文版
  1. 修复缩放窗口不能跨越多个屏幕的问题 #808 #812
  2. 更新翻译
  1. Fixed the issue of scaling window not being able to span multiple screens #808 #812
  2. Updated translations

v0.10.4

4 months ago
中文版
  1. 新效果:Anime4K_Restore_S 和 Anime4K_Restore_Soft_S #693(感谢 @IsaiasYang)
  2. 支持印度尼西亚语、意大利语、德语和越南语,有些语言还没有翻译完成,前往 Weblate 查看进度(感谢所有创建和维护翻译的贡献者)
  3. 多处 UI 优化 #652 #653 #749 #759 #760 #761 #762
  4. 修复启用“内联效果参数”选项后某些效果编译失败的问题 #678(感谢 @kato-megumi)
  5. 提高启用开发者选项的门槛 #744
  6. 缩减软件体积 #727 #735 #750
  7. 更新了很多基础设施,编译更简单了,请查看编译指南
  1. New effects: Anime4K_Restore_S and Anime4K_Restore_Soft_S #693 (thanks to @IsaiasYang)
  2. Support for Indonesian, Italian, German and Vietnamese languages, some languages are not fully translated yet, check out Weblate for progress (thanks to all contributors who created or maintained translations)
  3. Multiple UI optimizations #652 #653 #749 #759 #760 #761 #762
  4. Fixed the issue of some effects failing to compile when the “Make effect parameters inline” option is enabled #678 (thanks to @kato-megumi)
  5. Developer options are hidden by default now #744
  6. Reduced software size #727 #735 #750
  7. Updated a lot of infrastructure to make compilation easier, please refer to the compilation guide

v0.10.3

10 months ago
中文版
  1. 添加 Anime4K_Restore_Soft_UL、Anime4K_Restore_Soft_VL 和 Anime4K_Restore_UL #605 #602(感谢 @kato-megumi)
  2. 支持葡萄牙语(巴西)#628(感谢 @Zoommod)和韩语/朝鲜语 #619 (感谢 @MuscularPuky)
  3. 优化了主窗口样式 #624 #599
  4. 添加一个选项允许缩放最大化或全屏的窗口 #639 #559
  5. 允许更改用于启动程序的可执行文件 #641 #609
  6. 游戏内叠加层支持本地化 #600
  7. 优化软件体积 #592 #601 #623
  1. Add Anime4K_Restore_Soft_UL, Anime4K_Restore_Soft_VL and Anime4K_Restore_UL #605 #602 (thanks @kato-megumi)
  2. Support Portuguese (Brazil) #628 (thanks @Zoommod) and Korean #619 (thanks @MuscularPuky)
  3. Optimize the style of the main window #624 #599
  4. Add an option to allow scaling maximized or fullscreen windows #639 #559
  5. Allow changing the executable file used to launch the program #641 #609
  6. In-game overlay supports localization now #600
  7. Optimize the size of the software #592 #601 #623

v0.10.2

11 months ago
中文版
  1. 新图标 #573 (感谢 @WluhWluh)
  2. 支持日语(感谢 @soulset001),土耳其语(感谢 @SerdarSaglam)和西班牙语(感谢 @AndrusGerman),修正繁体中文翻译(感谢 @a0193143)
  3. 修复了 Alt+Space 和 Alt+F4 不起作用的问题
  4. 启动应用时支持自定义启动参数 #575
  5. Win11 中启用 Segoe UI Variable #590
  1. New logo #573 (thanks @WluhWluh)
  2. Support Japanese (thanks @soulset001), Turkish (thanks @SerdarSaglam) and Spanish (thanks @AndrusGerman), improve traditional Chinese translation (thanks @a0193143)
  3. Fixed the issue of Alt+Space and Alt+F4 not working
  4. Support custom launch parameters when starting the programs #575
  5. Enable Segoe UI Variable in Win11 #590

v0.10.1

1 year ago
  1. 修复了启用“始终以管理员身份运行”后无法启动的问题 #511
  2. 优化了对 RPG Maker MZ 的支持 #508
  3. 现在无需以管理员身份运行也可以为管理员身份的窗口创建配置文件
  4. 支持繁体中文 #518(感谢 @NeilTohno)
  5. 修复了缩放时无法和高权限窗口交互的问题 #515
  6. 修复了 RAVU_Zoom_R3 的错误 #516

v0.10.0

1 year ago

已知问题:启用“始终以管理员身份运行”后无法启动

这是 Magpie 诞生以来最重大的更新,感谢每一位贡献代码、翻译以及提供反馈的人。

感谢 @yakymoto 和 @0x4E69676874466F78 分别贡献了英语和俄语翻译。

运行环境变更

  1. 不再支持 Win10 v1903 以下的系统
  2. 不再需要 .NET 和 MSVC 运行时

新功能

  1. 全新的基于 WinUI 的用户界面,支持明暗主题和 Mica 背景
    • Mica 背景仅限 Win11 22H2+
  2. 特定窗口(游戏)的配置 #423 #385 #130 #61
    • 可直接在配置界面启动游戏
    • 支持自动缩放
  3. 支持在用户界面中配置缩放模式
  4. 支持“默认降采样效果”,窗口缩放后如果大于屏幕尺寸将自动应用此效果
    • 默认为 Bicubic
  5. 支持导出/导入缩放模式,可用于分享配置
    • 支持导入旧版缩放配置(ScaleModels.json)
  6. 新的修改快捷键的用户界面,和 PowerToys 体验相同
  7. 便携模式,开启后会将配置文件保存在本地文件夹
  8. 升级了常驻后台功能,开启后始终在系统托盘中显示图标,关闭主窗口不会退出程序
  9. 自动更新 #287
  10. 开机启动时不会弹出 UAC #327
  11. 支持自定义倒计时时长 #258
  12. 系统截图时自动隐藏光标 #394
    • 卡顿时可能不可靠
  13. “保留标题栏”选项
    • 仅限 Graphics Capture 和 Desktop Duplication 捕获模式
  14. 支持自定义光标缩放
  15. “内联效果参数”选项。开启后将稍微提高性能,但每次修改参数将需重新编译该效果
  16. 源窗口移动或调整大小后自动重新缩放 #487

修复

  1. 修复了与 RTSS 的兼容性
  2. 优化了对透明窗口的支持 #422
  3. 现在禁止缩放操作系统的特殊窗口,如开始菜单、任务栏、桌面窗口等
  4. 现在缩放时可以被 Wallpaper Engine 检测到 #502

效果变更

  1. 添加 Deband #472 #479 (感谢 @kato-megumi)
  2. CRT_Geom 默认不再模拟隔行扫描 #415
  3. 部分基于机器学习的效果现在有了更平滑的边缘 #398
  4. 删除 CatmullRom
  5. 修复了 SMAA 错误的支持缩放的问题

v0.10.0-preview2

1 year ago

仍在征集新图标 #370

运行环境变更

不再需要 MSVC 运行时。现在无需用户安装任何环境。

新功能

  1. 本地化支持,添加了英语本地化(Added English localization
    • 感谢 @yakymoto 提供的英语翻译
  2. 自动更新 #287
  3. 自动缩放 #193
  4. 优化了对打包应用的支持
    • 打包应用指通过 appx 安装的应用,如 UWP
  5. 标题栏菜单和系统托盘菜单适配深色主题
  6. 很多性能优化

修复

  1. 修复了以管理员身份运行时导入/导出闪退的问题
  2. 现在始终以用户身份启动游戏,即使 Magpie 是管理员身份
  3. 修复了重启资源管理器后托盘图标丢失的问题 #448
  4. 优化了快捷键的可用性 #448
  5. 修复了与 RTSS 的兼容性
  6. 现在禁止缩放操作系统的特殊窗口,如开始菜单、任务栏、桌面窗口等
  7. 现在管理员身份下不支持拖拽排序 #457

效果变更

添加 Deband #472 #479 (感谢 @kato-megumi)