-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
hidpi awareness for macos #1933
Comments
It might be possible to paint at higher resolution through opengl. |
It may be possible to enable HIDPI mode for testing - though this may require newer versions of macos: The API to call with opengl seems to be Optimizing OpenGL for High Resolution: Another difficulty is to do with how we obtain the opengl context: we initialize it without the window (which may be the cause of some problems: r23441 / #2372), so by the time we have the Example code: PyOpenGL on a Macbook retina display |
See also Xpra-org/xpra-html5#13, #2500. |
2020-09-24 16:40:38: antoine uploaded file
|
Received by email:
I managed to enable proper hidpi rendering resolution. However the scale is off and the view is too low. I tried to correct it by changing It's not clear to me what type of session it is connected to. |
2020-09-24 20:15:04: hawski commented
|
2020-09-24 21:24:55: hawski commented
|
We need to know the actual multiplier to use, preferably before creating the window. |
2020-09-25 11:43:13: hawski commented
|
That makes sense, but this may well require changes to the window geometry to adapt to the new scaling factor. And that's known to cause problems (resizing loops, etc).
Correct. We can't use GTK for opengl anyway, as this would require a rewrite of the opengl window rendering code... |
2020-09-30 11:45:37: hawski commented
|
Hi, Could you explain exactly what is meant by “scaling 2x render_size”? I’d like to try this workaround… |
@mbac hawski never replied and isn't subscribed to this ticket. |
Oh, hello. I'm here. I manually edited
I still use this workaround and did not work further on improving the change. |
This change will upscale the window, but this will not take advantage of the extra pixel density available. |
I had quite a dirty Xpra.app after my debugging. I diffed python sources against Xpra 4.0.4 source and forgot to mention that the previous patch is also crucial for it to work. So overall:
xpra shadow --printing=no --opengl=yes --desktop-scaling=2/3 \
--swap-keys=no ssh:[email protected]:0 Without my changes I get this:
AFAIR the value of 2 could be taken from [[NSScreen mainScreen] backingScaleFactor], but I don't know what should be done in case of multiple screens of differing scale factors. Like retina on a MacBook and 1080p external monitor.
Tell me what to modify and I'll check. I lost my way around the code. |
Ah, now I see! And starting with xpra 4.2 servers, this won't work any more because the server will downscale the image to save bandwidth - since it is not aware that the client really will make use of the extra pixels, the details are in #2052.
Well, for your use-case, there isn't a lot more needed because the window has a fixed size and there is no DPI synchronization to do in shadow mode. The difficulty is to make it work for seamless mode. Simply using the extra pixels by default would make all remote windows shrink by 50%, making them hard to read. |
Any updates on this? I'm also getting 36x31 dpi downscaling when I access my linux Xpra server from a MacOS client. |
@jaeyeun97 I think that the warning you are talking about has nothing to do with hidpi awareness, see https://github.com/Xpra-org/xpra/blob/master/docs/Usage/Xdummy.md |
Hi all. Not exactly clear how to get that magical HIDPI on the Mac. Text looks rugged and far from crisp or even decent. Could someone post a step by step solution? Way I understood it from previous conversation:
Or am I missing some recent option or flag or setting that I can use to avoid the above dance? |
@vkz :
There has been no progress on this. |
ah, I see. So, to clarify, as of now there is no way to get HIDPI on Mac OSX clients? Is this specific to XPRA implementation? As in, there's a chance one could get crisper image going with X server + Xquartz client. Of course we'd be missing on all the nice things XPRA gives us like clipboard sharing and persistent sessions etc. |
Only with
Yes.
Perhaps, I have no idea. |
ok, I feel stupid but it only just occurred to me that HIDPI you speak of probably refers to Mac Retina displays which I believe >220ppi, which is not what I'm talking about. My Mac indeed has retina, but I'm running XPRA client on the external 4K display 3840 x 2160 which at 32inch diagonal translates to something like 142ppi. If I made a mistake and butted in the wrong convo, I apologies. Should I move my questions into a separate issue? |
@vkz Probably, it doesn't hurt to open a new issue with your details in it. Please see https://github.com/Xpra-org/xpra/wiki/Reporting-Bugs |
See #4017 (comment) |
Perhaps we can deal with this as part of #2467 |
Is this still an issue, I would have thought that 854f012 fixed this. |
Probably solved by #4167 (comment) |
Can confirm this has fixed my (direct) issues, i'll have to use the desktop client more to see if there are any more bugs, but thank you for fixing this :) |
See Is HiDPI possible?
See also Automatically scale windows? - similar problem for wayland vs x11
Optimizing for High Resolution
The text was updated successfully, but these errors were encountered: