Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging Mariani window from 120Hz display to 60Hz display might not work #5

Open
sh95014 opened this issue Feb 16, 2022 · 1 comment
Labels
sus Suspected bug

Comments

@sh95014
Copy link
Owner

sh95014 commented Feb 16, 2022

Describe the bug
EmulatorViewController.mm runs a display link tied to the display of the main window:

CVDisplayLinkCreateWithActiveCGDisplays(&_displayLink);
CVDisplayLinkSetOutputCallback(self.displayLink, &MyDisplayLinkCallback, (__bridge void *)self);
CGDirectDisplayID viewDisplayID =
    (CGDirectDisplayID) [self.view.window.screen.deviceDescription[@"NSScreenNumber"] unsignedIntegerValue];
CVDisplayLinkSetCurrentCGDisplay(_displayLink, viewDisplayID);
CVDisplayLinkStart(self.displayLink);

and does not do anything if the main window is moved to another display with a different refresh rate. Don't have the appropriate hardware and haven't tried to see what would happen.

@sh95014 sh95014 added the sus Suspected bug label Feb 16, 2022
@sh95014
Copy link
Owner Author

sh95014 commented Jun 13, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sus Suspected bug
Projects
None yet
Development

No branches or pull requests

1 participant