Moving to and from retina to regular DPI screens causes issues
When you move an application from an retina screen to a regular one, OS X "resizes" it to the proper DPI, keeping it the same size but using 1x assets instead of 2x.
But this is what happens with mpv if I start it on a regular display and move the window to the retina display:

The artifacts on the other 3/4ths of the screen are just things that were previously on screen. Garbage data from the gpu I guess.
Similarly, starting mpv on the retina screen and moving it to an external one gives me this:

Edit: Going full screen then back fixes it in both cases, forgot to mention.
does it keep playing like this or is this only really visible while the player is paused?
It keeps playing like that. Going into full screen then back fixes it though, forgot to mention. (ignore the close and reopen of this issue, clicked the wrong button ugh)
It also gets fixed when the next video is played.
This is most likely solvable by implementing the windowDidChangeBackingProperties: delegate as mentioned here https://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/CapturingScreenContents/CapturingScreenContents.html#//apple_ref/doc/uid/TP40012302-CH10-SW1
I hopefully will have a patch for you to test later this night.
Can you test whether the above commit (retina-fix branch) fixes the problem?
Seems to work for me
That fixes it. If the player is paused everything behaves great.
But if you drag it across screens while something is playing there'll be a single frame of distortion. Additionally, if you drag a window halfway from a regular display to a retina, enough for the window resize to be triggered then without letting the mouse go drag it back, you get this, the last row and column of pixels get stretched:

I just got it to do that from a regular to a retina display, not vice versa. And only if something is playing.
But those are minor issues, and I was looking for things to nitpick about.
Ok so I'll start by pushing the 'not so good fix' later and investigate further. Do you know of any OSS project using OpenGL where this doesn't happen? (so that I might steal their ideas).
On Wed, Jul 10, 2013 at 6:04 PM, franzf [email protected] wrote:
That fixes it. If the player is paused everything behaves great.
But if you drag it across screens while something is playing there'll be a single frame of distortion. Additionally, if you drag a window halfway from a regular display to a retina, enough for the window resize to be triggered then without letting the mouse go drag it back, you get this:
[image: screen shot 2013-07-10 at 11 49 11 am]https://f.cloud.github.com/assets/869168/775903/eba159a4-e979-11e2-853c-356c4cb365a6.png
I just got it to do that from a regular to a retina display, not vice versa. And only if something is playing.
But those are minor issues, and I was looking for things to nitpick about.
— Reply to this email directly or view it on GitHubhttps://github.com/mpv-player/mpv/issues/130#issuecomment-20752933 .
Before multithreaded Cocoa the screen scramble thing happen alot when open file with subtitle simple way to reproduce it pause videos then spam key F maybe it because libass, some time the mess up screen is a screen previously on screen hour ago is this a memory leak ?
Status? Ping?
I can't reproduce because I don't have a multimonitor setup nor a hidpi monitor. From the screenshot it looks like the texture is not resized correctly though.
is this still a problem after all the OS X changes?
I've tried to reproduce it but it seems to be fixed.
Nice! Closing!