ChinaEvanZhu0721/SBMS
SBMS is an open-source Windows multi-monitor scaling tool that fixes Windows mixed-DPI display issues, aligns virtual and physical screens, and enables remote secondary displays.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🖥️ Fix mismatched Windows multi-monitors with a virtual display
Decouple app desktop size from physical monitor DPI without forcing every screen to the same scaling.
SBMS ('SBMS bridges multiple screens') tackles long-standing Windows issues with different pixel densities by creating a virtual display. Apps run on that virtual desktop, SBMS maps and scales its output to a chosen physical monitor, and keeps mouse/input aligned between them. It can also expose that virtual desktop to other devices via Sunshine/Moonlight instead of only mirroring a physical display.
✨ Highlights
- Virtual display via indirect driver: Uses a C++ UMDF indirect display driver over WDF/IddCx to present a virtual monitor to Windows, with local mapping done via Desktop Duplication and D3D11 pixel shaders.
- DPI & scaling fixes: Targets uneven scaling between monitors, non-integer scaling clarity, PPI differences causing misaligned layouts/cursor jumps, and hard desktop-size coupling.
- Window migration & restore: On start, windows on the target physical screen move to the virtual screen. On stop, only windows still on the virtual screen move back to the correct physical screen (including those opened or minimized during mapping). Windows already on other screens stay put. Positions/sizes are preserved by source-target boundary ratio with state (minimized/maximized/restored-maximized), and fallbacks apply only for invalid/out-of-bounds layouts.
- Upgraded resampling: A new Lanczos3-based algorithm with custom ring suppression and adaptive chroma-edge suppression aims for higher clarity and less ringing/chromatic fringe/aliasing/moiré. Higher GPU cost; auto/manual fallback to the older area-average + bilinear high-performance scheme exists for integrated/limited GPUs.
- Sunshine 'Stream only' output: Create a virtual display with no local physical mapping and attach a per-group Sunshine instance (isolated config/creds/ports/certs) to stream that separate desktop to Moonlight devices.
- Input mapping: Converts mouse coordinates from the target physical display area back to the virtual desktop area and drives the real Windows pointer.
💡 Why it matters
SBMS doesn't try to make Windows auto-correct mixed-DPI topology. Instead it forces a consistent virtual canvas, scales it to the screen you actually look at, and restores layout boundaries on teardown. For mixed 2K/4K or laptop+external setups this is a pragmatic compromise. The streaming path is also strictly split: Sunshine/Moonlight handle encoding/transport/remote input, while SBMS handles the virtual display and instance management.
#Windows #MultiMonitor #DPI #VirtualDisplay #Scaling #Sunshine #Rust #TiniX
Similar Projects
Discover other similar projects and AI models.
Sunshine fork: an enhanced sunshine, a self-hosted game streaming host for Moonlight with HDR10/HDR Vivid, virtual displays, advanced audio, optimized encoders, and a modern control panel.
This is a web server which allows you to stream games with sunshine into a web browser.
A virtual display manager for Linux with integrated sunshine streamer.
macOS-inspired Capitaine cursors for Windows 11, rendered from the original vector art at every size Windows picks for each display scale and pointer size. Dark and Light variants, one-click install.
On-demand headless virtual display for Sunshine on CachyOS (KDE Plasma 6 Wayland). Streams Moonlight/Artemis at the client's native resolution with host monitors off, restored on disconnect.
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
A modern GUI client based on Tauri, designed to run in Windows, macOS and Linux for tailored proxy experience