Re: [Xquartz-dev] glxgears performance differences in rooted/rootless window
First off, let's please try to keep discussion pertaining to beta releases and development questions in the xquartz-dev list so we don't spam up x11-users (hence the list change in the CC). There should really be no difference in GLX performance between fullscreen and rootless... there may be some slight performance issues due to window compositing which doesn't happen if you're in fullscreen (because the root window blocks the other windows)... I think this is when the mouse cursor is near the dropshadow of the window ... or maybe when the drop-shadow of another window is near the window... something like that... I don't exactly recall (sorry). As for the "visible in rootless mode" then cmd-alt-a into fullscreen, I'm confused... are you running in rootless or fullscreen mode? If you have fullscreen enabled, then you shouldn't see any window in rootless mode. It should pop up in X11-fullscreen, but what it should do and what it does do are sometimes not quite right with new features... ;) What is the state of your "Focus on new windows" option? On Nov 10, 2008, at 13:21, Dave Ray wrote:
When I run glxgears under the latest X11 release, using rooted window in fullscreen mode, I get a frame rate around 3200/sec, a rate comparable with the rate I get with the same hardware running Linux and native video drivers. Thats great news in terms of GLX implementation.
However if I type ctrl-A to get out of the root window, and run glxgears from the non-X11 Apple Terminal window, the glxgears window pops up, visible in rootless mode. If I switch to X11.app and type ctrl-A to get back to my root window, the running glxgears window is no where to be seen. I have to ctrl-A again to the rootless window to see it. I am wondering if it is that way by design, or a quirk of my window manager or X11.
I also see a major difference in glxgears' frame rate between the glxgears run from the root window, versus the one run from Apple's Terminal and visible in the rootless window. This is expected of course. I'm wondering if the drop in frame rate could be related to the performance of the window manger as it handles its interface with Xquartz, and also if it could be used as potential measure of how well different wm's work in the Apple environment. Also wondering if the glxgears frame rate comparisons are useful to developers.
Dave
_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (X11-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/jeremyhu%40freedesktop.org
This email sent to jeremyhu@freedesktop.org
On Nov 10, 2008, at 2:14 PM, Jeremy Huddleston wrote:
There should really be no difference in GLX performance between fullscreen and rootless... there may be some slight performance issues due to window compositing which doesn't happen if you're in fullscreen (because the root window blocks the other windows)... I think this is when the mouse cursor is near the dropshadow of the window ... or maybe when the drop-shadow of another window is near the window... something like that... I don't exactly recall (sorry).
I tried to position the window for glxgears well away from any other windows, and the mouse was far away not being moved. So I was surprised to see the big change in frame rate. Curious if you compared the glxgears frame rates on your system between fullscreen and rootless mode? If they don't vary much on your system then perhaps I should suspect my wm.
As for the "visible in rootless mode" then cmd-alt-a into fullscreen, I'm confused... are you running in rootless or fullscreen mode? If you have fullscreen enabled, then you shouldn't see any window in rootless mode. It should pop up in X11- fullscreen, but what it should do and what it does do are sometimes not quite right with new features... ;)
I am running in fullscreen mode, but since the command-tab isn't currently active in X11, the only way I can get out of X11 is to option-cmd-A, and then command-tab. So I'm not sure what state that leaves X11. I am using full screen mode but escaped it using option- cmd-A, before going to Terminal and running the programs.
What is the state of your "Focus on new windows" option?
"Focus on new windows" is checked, "focus follows mouse" is un-checked. I guess I was confused to see the window first appear against the Apple desktop when I thought X11 was in fullscreen mode. When I tried this under Apple's stock X11 from 10.5.4 I don't remember seeing this,m i thought new X11 windows were always drawn off-screen in the X11 root window. I just re-tested this and it is still happening, the window shows up initially on the Apple desktop and I can still reproduce that. I am observing a slight difference in the sequence of events from my last post. When I launch any X11 app from Apple Terminal with X11 running in the background (fullscreen mode), the window shows up in a window against the Apple desktop, while Terminal is still in the foreground. It sort of looks like rootless mode with X11 in the background. As soon as I switch to X11 with command-tab or by clicking on the X11 app's window, the screen goes to X11 fullscreen mode and the newly created window is there in the X11 root window as expected. This is a change from what I saw yesterday. When I switch out of fullscreen with option-cmd-A, the window is no longer on the Apple desktop in the background, as I would expect, it remains bound to the root window. I tested it twice before my post yesterday, so I'm pretty sure something changed. Aaargh. I guess I can still do the glxgears frame rate comparison by manually switching X11 in and out of fullscreen mode. But in both yesterday and today's cases, the window shows up initially on the Apple desktop and I can still reproduce that, which is the thing you were concerned about. Dave
I guess I was confused to see the window first appear against the Apple desktop when I thought X11 was in fullscreen mode. When I tried this under Apple's stock X11 from 10.5.4 I don't remember seeing this,m i thought new X11 windows were always drawn off-screen in the X11 root window.
No... The fullscreen support was just added in 2.3.2_beta2 (or maybe beta1, I forget)... It was not present in the X11 version with 10.5.4... so with that X11.app, you only had the rootless mode.
I just re-tested this and it is still happening, the window shows up initially on the Apple desktop and I can still reproduce that.
K. I think it might be related to the 'focus on new window' option...
On Nov 10, 2008, at 6:30 PM, Jeremy Huddleston wrote:
I guess I was confused to see the window first appear against the Apple desktop when I thought X11 was in fullscreen mode. When I tried this under Apple's stock X11 from 10.5.4 I don't remember seeing this,m i thought new X11 windows were always drawn off- screen in the X11 root window.
No... The fullscreen support was just added in 2.3.2_beta2 (or maybe beta1, I forget)... It was not present in the X11 version with 10.5.4... so with that X11.app, you only had the rootless mode.
You are right, not full-screen, there was always an OS-X menu bar. I seem to remember some setting that toggled whether the root X11 desktop would show or not while in X11. I might be confused about this. Anyway, I just retried it with the "Focus on new window" turned off, and I got the same result. I quit X11 and restarted, and got it again. I am seeing strange things when just switching in and out of fullscreen with cmd-option-A repeatedly. The first time I switch out of fullscreen with cmd-option-A I see the Apple desktop, menu bar, dock as expected. When I switch back to fullscreen mode and out again, I see the menu bar and dock, but I still see the X11 root window background and nothing from my Apple desktop. If I command-tab to another app, the X11 desktop remains and I'm unable to access any items on the Apple desktop until I quit X11. I don't personally keep things on the desktop, but this seems like an issue. Has anyone else seen this? Perhaps this is specific to my wm. I compiled it under 10.5.4. Maybe time to recompile? Dave
On Nov 10, 2008, at 21:22, Dave Ray wrote:
I am seeing strange things when just switching in and out of fullscreen with cmd-option-A repeatedly. The first time I switch out of fullscreen with cmd-option-A I see the Apple desktop, menu bar, dock as expected. When I switch back to fullscreen mode and out again, I see the menu bar and dock, but I still see the X11 root window background and nothing from my Apple desktop. If I command- tab to another app, the X11 desktop remains and I'm unable to access any items on the Apple desktop until I quit X11. I don't personally keep things on the desktop, but this seems like an issue. Has anyone else seen this?
Yeah... I see it... Fullscreen is still fragile.
Perhaps this is specific to my wm. I compiled it under 10.5.4. Maybe time to recompile?
No, it has nothing to do with the WM. --Jeremy
participants (2)
-
Dave Ray
-
Jeremy Huddleston