FlashbackTurbo
一款针对 Flashback 的 Fabric 插件,可大幅提升视频导出速度——且无损画质。
实战验证
已在 数百次真实的匿名导出 中得到验证,主要平台为 Windows,同时也支持 macOS 和 Linux。导出失败率约为 ~1%,所有观察到的失败均源于外部因素(例如为超长回放分配了过少的内存,或在导出过程中游戏被关闭)——从未出现由 FlashbackTurbo 本身引入的回归问题。
功能说明
通过 Mixin 补丁 Flashback 的导出管线,将串行、低效的操作替换为并行操作:
- 并行 PNG 写入器(N-1 个线程)+ 可配置的 zlib 压缩级别 + 关闭透明度时使用 RGB 颜色类型
- FFmpeg 线程优化(针对各编码器:
h264_nvenc、h264_qsv、h264_videotoolbox、libopenh264) - 移除静默的 4K 降采样限制
- 硬件编码器使用分片 MP4 复用器 → 最终化阶段速度提升约 ~10 倍
- 导出后阶段显示动态“正在保存…”覆盖层
- 修复 Flashback 在回放中途导出时的崩溃问题(空
mc.level竞态条件) - 自动将软件编码升级为 GPU 编码 (0.5.0) ——当导出原本会使用缓慢的
libopenh264编码器时,若可用则将其重定向至硬件编码器(NVENC/QSV),适用于仅配置了软件编码的约 13% 的导出任务。具备故障安全机制,SSIM ≥ 0.99。 - 静默自动更新 (0.6.0) —— 自动从 Modrinth 保持你的 Zeffut 模组处于最新版本:启动时后台检查、验证下载、在游戏退出时替换。可在配置文件中设置
"autoUpdate": false以禁用此功能。
所有挂钩均需通过 config/flashbackturbo.json 手动启用,并默认采用安全值。
性能表现
受控基准测试(PNG 序列)
真实 1.21.11 回放,10 秒片段,分辨率 1920×1080(共 603 帧):
| 模式 | 总耗时 | 每帧耗时 |
|---|---|---|
| Vanilla | 96 081 ms | 159 ms |
| Turbo | 8 774 ms | 14 ms |
端到端加速 10.95 倍。
真实世界现场数据(MP4 导出)
基于真实导出样本(约 1080p 片段)的中位数导出时间,按编码器分类:
| 平台 · 编码器 | 中位数导出时间 |
|---|---|
Windows · NVIDIA h264_nvenc |
~8.5 秒 (60 fps) |
Windows · Intel h264_qsv |
~23 秒 (60 fps) |
macOS · h264_videotoolbox |
~26 秒 (30 fps) |
软件回退方案 libopenh264 |
~55 秒 |
在 Windows + NVIDIA GPU 环境下速度最快。即将到来的版本将在可用时将纯软件导出自动升级为 GPU 编码。
画质
输出无损 PNG —— zlib 压缩级别仅影响文件大小,解码后的像素完全一致。FFmpeg 的线程优化不会改变编码后的比特流。
隐私保护
自 0.4.0 版本起,FlashbackTurbo 会发送匿名使用遥测数据(PostHog),以便优先改进体验:包含一个随机本地 UUID,不收集用户名 / IP / 文件路径,异常消息已脱敏。完全故障安全(绝不会拖慢或破坏导出过程),且支持退出 —— 可在配置文件中设置 "enableTelemetry": false 以禁用遥测。
依赖要求
- Flashback 和 Fabric API
- Minecraft 1.21.9 / 1.21.10 / 1.21.11 (Java 21) —— 或 26.1.x (Java 25)
FlashbackTurbo
A Fabric addon for Flashback that drastically speeds up video export — without quality loss.
Proven in the field
Validated across hundreds of real anonymous exports on Windows (primary platform), macOS and Linux. Export failure rate ~1%, and every observed failure was external (not enough RAM allocated for very long replays, or the game closed mid-export) — never a regression introduced by FlashbackTurbo itself.
What it does
Patches Flashback's export pipeline via Mixin to replace serial, low-tuned operations with parallel ones:
- Parallel PNG writer (N-1 threads) + configurable zlib level + RGB color-type when transparency is off
- FFmpeg threading tunes per encoder (
h264_nvenc,h264_qsv,h264_videotoolbox,libopenh264) - Removes the silent 4K downscale cap
- Fragmented MP4 muxer on hardware encoders → ~10× faster finalize
- Animated "Saving…" overlay during the post-export phase
- Fixes a Flashback crash on mid-replay exports (null
mc.levelrace) - Auto-promotes software → GPU encoding (0.5.0) — when an export would use the slow
libopenh264encoder, redirects it to a hardware encoder (NVENC/QSV) when one is available, for the ~13% of exports on software-only configs. Fail-safe, SSIM ≥ 0.99. - Silent auto-update (0.6.0) — keeps your Zeffut mods up to date from Modrinth automatically: background check on launch, verified download, swap at game exit. Opt out with
"autoUpdate": falsein the config.
All hooks are opt-in via config/flashbackturbo.json and default to safe values.
Performance
Controlled benchmark (PNG sequence)
Real 1.21.11 replay, 10-second slice at 1920×1080 (603 frames):
| Mode | Total | Per frame |
|---|---|---|
| Vanilla | 96 081 ms | 159 ms |
| Turbo | 8 774 ms | 14 ms |
10.95× end-to-end.
Real-world field data (MP4 export)
Median export time across real exports (~1080p clips), by encoder:
| Platform · encoder | Median export |
|---|---|
Windows · NVIDIA h264_nvenc |
~8.5 s (60 fps) |
Windows · Intel h264_qsv |
~23 s (60 fps) |
macOS · h264_videotoolbox |
~26 s (30 fps) |
Software fallback libopenh264 |
~55 s |
Fastest on Windows + an NVIDIA GPU. A coming release auto-promotes pure-software exports to the GPU encoder when one is available.
Quality
Lossless PNG output — zlib level only changes file size, decoded pixels are bit-identical. The FFmpeg threading tunes don't change the encoded bitstream.
Privacy
Since 0.4.0, FlashbackTurbo sends anonymous usage telemetry (PostHog) to prioritise improvements: a random local UUID, no username / IP / file paths, sanitised exception messages. Fully fail-safe (it can never slow down or break an export) and opt-out — set "enableTelemetry": false in the config.
Requirements
- Flashback and Fabric API
- Minecraft 1.21.9 / 1.21.10 / 1.21.11 (Java 21) — or 26.1.x (Java 25)
下载 Flashback Turbo
下载 Flashback Turbo
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flashback Turbo
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Minecraft 26.3
- 基于 Minecraft 26.3 和 Flashback 0.43.4 进行构建。
- 使用 Mojang 官方运行时名称以确保与 26.3 兼容。
- 在 CI 中验证可安装归档文件及所需依赖项。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧