Skip to content

AppleBlox/virtualdisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

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.

Build

Requires Xcode Command Line Tools.

make

The binary is output to .build/virtualdisplay. To install system-wide:

make install  # copies to /usr/local/bin/virtualdisplay

Usage

virtualdisplay           # start with menu bar icon
virtualdisplay --no-menu # start headless, stop with Ctrl-C or SIGTERM
virtualdisplay --help

When running, a display icon appears in the menu bar. Click it and select Stop to disable mirroring and remove the virtual display. The original display resolution is restored on exit.

Signing

By default the binary is ad-hoc signed. If the virtual display fails to initialize, sign with a Developer ID instead:

make SIGN="Developer ID Application: Your Name (TEAMID)"

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors