Skip to content

About

Creates a virtual 240Hz display and mirrors the main screen to it

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Creates a virtual 240Hz display and mirrors the main screen to it

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages