MinePresence
在 Discord 上共享整个屏幕,而不会导致 Minecraft 卡顿。
MinePresence 是一款轻量级的客户端 Fabric 模组,旨在解决一个特定且令人抓狂的问题:当你在 Discord 上共享整个屏幕(而非仅 Minecraft 窗口)时,一旦你点击切入游戏,观众端的预览画面就会冻结或卡顿——尽管你的游戏本身运行得非常流畅。仅共享 Minecraft 窗口可以正常工作,但全屏/整个显示器的共享会出现问题。
MinePresence 通过将 Minecraft 保持在合成式的无边框窗口中,防止 Windows 将独占的、不利于捕获的呈现路径交给游戏。你的桌面捕获保持实时,直播流保持平滑,同时你依然享受接近全屏的游戏体验。
出现此问题的原因
在现代 Windows(尤其是 Windows 11 24H2/25H2)上,覆盖显示器边缘到边缘的无边框游戏窗口会被提升为“独立翻转”/全屏优化状态——这是一种绕过 Windows 桌面合成器 (DWM) 的快速路径。这种路径对延迟很有利,但对于桌面复制屏幕捕获(即 Discord 获取整个屏幕的方式)来说是不可见的。结果是:捕获画面会冻结在最后合成的帧上(通常是你切回游戏的瞬间),而你自己的视图则继续正常运行。
MinePresence 阻止了这种提升的发生。
功能说明
强制 Minecraft 进入 decorated=false 的无边框窗口,而不是独占式全屏。
应用可配置的安全内边距(默认为 1 px),使窗口不与显示器完美地边缘对齐——正是这个细节让 Windows 通过 DWM 对其进行合成,从而确保屏幕捕获继续工作。
在焦点变化及可配置的时间间隔后重新检查,仅在确实发生变化时才修复窗口(避免每帧进行无谓的工作)。
在失去焦点时干净地释放鼠标,以实现平滑的 Alt+Tab / 点击移出操作。
可选的帧 pacing 限制,供希望获得稳定、利于捕获的帧率的用户使用(默认关闭——无限 FPS)。
不修补渲染器,不挂钩着色器,没有服务器端代码。它只接触操作系统窗口。
与你现有的模组共存
MinePresence 的设计初衷是共存而非竞争:
Cubes Without Borders(及其他无边框/全屏模组):完全支持。MinePresence 会检测它们并切换到共存模式——它允许该模组执行从全屏到无边框的转换,并仅在其窗口之上强制执行捕获安全内边距。无需争夺窗口控制权,也不会闪烁。你无需禁用任何内容。
Sodium、Iris、Lithium、ModernFix、光影包以及典型性能/视觉整合包中的其他组件:不受影响。MinePresence 不修补渲染器内部或着色器,因此不会干扰它们。
设置
打开 Options… → MinePresence(右上角按钮),或者如果你安装了 Mod Menu,也可以通过它打开。
设置项 默认值 功能说明
Enabled On 控制所有 MinePresence 行为的主开关。
Borderless On 使用无边框窗口而非原生全屏。
Discord Guard On 应用安全内边距以保持桌面捕获有效。
Safe Inset 1 px 0 = 边缘对齐;1 px 通常可避开不利于捕获的路径。可在 0/1/2/4/8 之间循环切换。
FPS Limit Off 可选的帧率限制。保持关闭以获得无限 FPS。
FPS Cap Unlimited 仅在开启 FPS Limit 时使用的上限值。
Auto Reapply On 定期验证窗口,仅在需要时进行修复。
Verify Every 5 s Auto Reapply 检查的频率。时间越长开销越小。
Coexist Mode On 与 Cubes Without Borders 等无边框模组配合使用:开启时在其窗口上强制执行内边距;关闭时由 MinePresence 接管窗口。
Restore Borders On 当 MinePresence 关闭时恢复标题栏。
Diagnostics Off 每 10 秒向日志写入一行状态信息。用于错误报告。
Release Mouse On 一旦 Minecraft 失去焦点,立即解锁光标。
推荐的起始点:将所有选项保留在默认值。如果 Discord 仍然卡顿,请将 Safe Inset 保持在 1 px(不要设为 0)。
如果捕获仍然卡顿(Windows 提示)
MinePresence 是游戏侧的修复方案,但在 Windows 11 上,以下两个 Windows 设置有助于其可靠生效:
在 Minecraft 视频设置中,将 Fullscreen Resolution / 独占式全屏设置为关闭(此模组已避免独占式全屏,但请确保你没有在其他地方强制启用它)。
如果你的屏幕共享仍然卡顿,请禁用 Java 运行时的“全屏优化”:右键点击启动器使用的 javaw.exe → 属性 → 兼容性 → 勾选“禁用全屏优化”。这将强制系统范围内为游戏使用合成路径。
大多数情况下这两者都不是必需的——建议先尝试模组本身。
兼容性
加载器:仅限 Fabric。
端侧:仅限客户端(连接到任何服务器的客户端均可安全安装;在服务器端无任何作用)。
Minecraft:26.2
依赖项:Fabric Loader 0.19.3+、Java 25。
可选:Mod Menu(配置界面)、Fabric API(仅当你的整合包已使用时需要——MinePresence 本身不需要它)。
坦诚声明的局限性
诚然,没有任何 Minecraft 侧的模组能承诺在所有 GPU、驱动程序、Windows 版本和 Discord 版本上实现完美的 Discord 捕获——因为捕获路径最终由 Windows 和 Discord 控制。MinePresence 所做的是最强有力的游戏侧变通方法:保持 Minecraft 处于合成状态,避免独占式全屏,并在游戏聚焦时避免饿死桌面捕获。在它经过测试的设置中,这正是流畅流媒体与卡顿流媒体之间的区别。
源代码与许可证
基于 MIT License 开源。源代码和问题追踪器:
MinePresence
Stream your whole screen on Discord without Minecraft freezing.
MinePresence is a lightweight, client-side Fabric mod that fixes a specific, maddening problem: you share your entire screen (not just the Minecraft window) on Discord, and the moment you click into the game the viewers' preview freezes or stutters — even though the game runs perfectly smoothly on your end. Sharing just the Minecraft window works, but full-screen / whole-display share breaks.
MinePresence keeps Minecraft in a composited borderless window so Windows never hands the game an exclusive, capture-hostile presentation path. Your desktop-capture stays live, your stream stays smooth, and you keep true fullscreen-feel gameplay.
Why this happens
On modern Windows (especially Windows 11 24H2/25H2), a borderless game window that covers the monitor edge-to-edge gets promoted to "independent flip" / fullscreen optimizations — a fast path that bypasses the Windows desktop compositor (DWM). That path is great for latency but invisible to desktop-duplication screen capture, which is how Discord grabs your whole screen. The result: the capture freezes on the last composited frame (usually the moment you tabbed in), while your own view keeps running fine.
MinePresence stops that promotion from happening.
What it does
Forces Minecraft into a decorated=false borderless window instead of exclusive fullscreen.
Applies a configurable safe inset (default 1 px) so the window isn't a perfect edge-to-edge match for the monitor — the single detail that keeps Windows compositing it through DWM, so screen capture keeps working.
Re-checks on focus changes and on a configurable interval, repairing the window only if something actually changed (no per-frame busywork).
Releases the mouse cleanly on focus loss for smooth alt-tab / click-out.
Optional frame-pacing cap for users who want a steady, capture-friendly frame cadence (off by default — unlimited FPS).
No renderer patching, no shader hooks, no server-side code. It only touches the OS window.
Works alongside your existing mods
MinePresence is built to coexist, not compete:
Cubes Without Borders (and other borderless/fullscreen mods): fully supported. MinePresence detects them and switches to Coexist Mode — it lets that mod do the fullscreen-to-borderless conversion and simply enforces the capture-safe inset on top of its window. No fighting over the window, no flicker. You do not have to disable anything.
Sodium, Iris, Lithium, ModernFix, shader packs, and the rest of a typical performance/visual pack: unaffected. MinePresence doesn't patch renderer internals or shaders, so it doesn't interfere with them.
Settings
Open Options… → MinePresence (top-right button), or open it through Mod Menu if you have it installed.
Setting Default What it does
Enabled On Master switch for all MinePresence behavior.
Borderless On Use a borderless window instead of native fullscreen.
Discord Guard On Applies the safe inset that keeps desktop capture alive.
Safe Inset 1 px 0 = edge-to-edge; 1 px usually avoids the capture-hostile path. Cycles 0/1/2/4/8.
FPS Limit Off Optional frame-pacing cap. Leave off for unlimited FPS.
FPS Cap Unlimited The cap used only while FPS Limit is on.
Auto Reapply On Periodically verifies the window and repairs it only if needed.
Verify Every 5 s How often Auto Reapply checks. Longer is cheaper.
Coexist Mode On With borderless mods like Cubes Without Borders: On enforces the inset on their window; Off makes MinePresence take the window over itself.
Restore Borders On Gives the title bar back when MinePresence is turned off.
Diagnostics Off Writes a status line to the log every 10 s. For bug reports.
Release Mouse On Unlocks the cursor the instant Minecraft loses focus.
Recommended starting point: leave everything at its default. If Discord still freezes, keep Safe Inset at 1 px (not 0).
If capture still freezes (Windows tips)
MinePresence is the game-side fix, but two Windows settings help it land reliably on Windows 11:
In Minecraft Video Settings, set Fullscreen Resolution / exclusive fullscreen off (this mod already avoids exclusive fullscreen, but make sure you aren't forcing it elsewhere).
If your screen share still freezes, disable "Fullscreen optimizations" for your Java runtime: right-click the javaw.exe your launcher uses → Properties → Compatibility → check Disable fullscreen optimizations. This forces the composited path system-wide for the game.
Neither is required for most setups — try the mod first.
Compatibility
Loader: Fabric only.
Side: Client only (safe to have on a client connecting to any server; does nothing server-side).
Minecraft: 26.2
Requires: Fabric Loader 0.19.3+, Java 25.
Optional: Mod Menu (config screen), Fabric API (only if your pack already uses it — MinePresence itself doesn't need it).
No guarantees, honestly stated
No Minecraft-side mod can promise perfect Discord capture on every GPU, driver, Windows build, and Discord release — the capture path is ultimately controlled by Windows and Discord. What MinePresence does is the strongest game-side workaround: keep Minecraft composited, avoid exclusive fullscreen, and avoid starving desktop capture while the game is focused. On the setups it's been tested on, that's the difference between a frozen stream and a smooth one.
Source & license
Open source under the MIT License. Source and issue tracker:
评论 0
登录后参与评分
还没有评论,来抢沙发吧