RepositoryRustCNChina
EvanZhu0721

EvanZhu0721/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.

94stars
7forks
3issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: virtual-display

#1 Repository of the week

1
TINIX TRENDING·Topic: display-scaling

#1 Repository of the week

1
TINIX TRENDING·Topic: high-dpi

#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.

RepositoryC++
AlkaidLab/foundation-sunshine

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.

8.5k
Nov 30, 2026
RepositoryTypeScript
MrCreativ3001/moonlight-web-stream

This is a web server which allows you to stream games with sunshine into a web browser.

778
Nov 29, 2026
RepositoryPython
vinnavannewton/project-monitorize

A virtual display manager for Linux with integrated sunshine streamer.

268
Nov 15, 2026
Repository
hervad/capitaine-cursors-w11-hidpi

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.

62
Nov 11, 2026
RepositoryShell
ImStillBlue/sunshine-virtual-display

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.

53
Jul 9, 2026
RepositoryRust
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

132.8k
Dec 2, 2026
RepositoryBatchfile
massgravel/Microsoft-Activation-Scripts

Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.

201.8k
Nov 11, 2026
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.5k
Nov 28, 2026
RepositoryTypeScript
clash-verge-rev/clash-verge-rev

A modern GUI client based on Tauri, designed to run in Windows, macOS and Linux for tailored proxy experience

162.1k
Dec 2, 2026