Creates a virtual 240Hz display and mirrors the main screen to it
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 01:40:30 +11:00
src chore: fix typos 2026-11-18 01:40:30 +11:00
.gitignore Add .gitignore, remove build artifacts and local config 2026-04-05 03:01:49 +02:00
Cargo.toml chore: update to integrate with logger 2026-10-24 14:33:42 +11:00
LICENSE.txt repo: License new commits 2026-08-29 15:52:46 +10:00
README.md chore: implement moving and setting display as default with origin 0,0 2026-10-15 17:00:52 +11:00

virtualdisplay

Creates a virtual 240Hz display and mirrors your main screen to it. Useful for unlocking higher refresh rates on displays that support it through software.

How it works

Uses macOS's private CGVirtualDisplay API to create a virtual monitor at your main screen's resolution with a 240Hz refresh rate, then configures the system to mirror your physical display to it via CGConfigureDisplayMirrorOfDisplay.

It also moves the virtual display to origin (0,0) with CGConfigureDisplayOrigin, which is how macOS designates the main display, so apps vsync against the virtual display instead of the physical one. Both steps are verified and retried until they stick, and rolled back on teardown.

Build

Note: You need to clone the Froststrap repo to be able to get the workspace Cargo.toml as this project is intended to only work apart of the backend dir, but to keep maintainability it's still using the registered fork repo.

This requires Rust.

cargo b -r