Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-08-09, 05:42 AM   #1
Nilith
Registered User
 
Join Date: May 2007
Posts: 18
Angry 3D windows hang temporarily on focus change

Hi,

I am seeing issues where OpenGL (and wine-boxed d3d) locks up temporarily (no redraw is being done) on window manager focus switches; no game logic runs if the game is singlethreaded (obviously).

Creating a tool widget somewhere and tearing it down again (with the implied focus switch) is sufficient to un-lock the 3D renderer - e.g., just opening a right-click popup somewhere and closing it again works fine.

However, it is extremely annoying, as the reverse is also a problem: Any game played stops as soon as any OSD (for example, amarok currently playing) pops up, and resumes as soon as the popup disappears.

I cannot reproduce this behaviour with glxgears; however, with Neverwinter Nights (the only game I play frequently) it happens all the time, as does it with wine-started D3D games.

I have observed this behaviour on all kernels since 2.6.18 (though it did not necessarily start with that version), and on all NVIDIA driver releases I care to throw an axe at.

I am running a quad-head xinerama setup with two 7900GT driving the screens, on openbox (though the issues are with kwin too) - also, find the bug-report attached below.

How can I help to fix this?
Attached Files
File Type: gz nvidia-bug-report.log.gz (42.2 KB, 101 views)
Nilith is offline   Reply With Quote
Old 06-19-10, 04:24 PM   #2
Nilith
Registered User
 
Join Date: May 2007
Posts: 18
Default Re: 3D windows hang temporarily on focus change

Bump.

Ubuntu 10.4 with metacity or openbox exhibits the same issues. Installed two 9500GT meanwhile, setup is otherwise the same.

Happens with VMWare Player too (presumably when it uses some GL context for 3d drawing/passthrough). Especially when toggling fullscreen mode.

Reproducible with all drivers including the newest 256 beta, but running the 10.4-distributed driver for now.

This is bloody annoying.
Nilith is offline   Reply With Quote
Old 06-20-10, 08:50 AM   #3
Nilith
Registered User
 
Join Date: May 2007
Posts: 18
Default Re: 3D windows hang temporarily on focus change

Some more research:

This describes the exactly same symptoms I am seeing.

Also, I've set openbox to do "focus follows mouse". If I disable that, everything seems to work fine (except my sanity). Hunh.

This gave me the idea to try that out, although I don't know in what way it relates to what I am seeing. The referenced ubuntu bug agains nvidia-* is flagged as fixed, although I am clearly still seeing it.

Any tips? Is it a bug, is it a feature?
Nilith is offline   Reply With Quote
Old 06-21-10, 07:48 PM   #4
bones_was_here
Registered User
 
Join Date: Jun 2010
Location: Australia
Posts: 28
Default Re: 3D windows hang temporarily on focus change

I see a problem similar to this, but only as per the following case (never yet with a wine game):
  • I start Nexuiz (2.5.2 GLX x64 client configured with vid_netwmfullscreen=1)
  • I attempt to task switch with alt+tab or by hotkeying to another virtual desktop
  • Nearly every time, this results in all applications being drawn at less than 1fps, which is pretty unusable
  • If I switch back to Nexuiz, framerate returns to normal
  • Subsequent task switches do not cause this problem - it only occurs on the first task switch after starting the game
I'm using a GTX275, kernel 2.6.31.13 (vanilla), xserver 1.7.7 and KDE 4.4.4 with KWin's composition enabled on Debian Sid.
This problem occurs with drivers 256.35, 256.29, the 195 series, the 190 series, and probably earlier drivers that I don't remember.
Attached Files
File Type: gz nvidia-bug-report.log.gz (47.9 KB, 61 views)
bones_was_here is offline   Reply With Quote
Old 06-23-10, 06:24 AM   #5
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: 3D windows hang temporarily on focus change

Quote:
Originally Posted by bones_was_here View Post
I'm using a GTX275, kernel 2.6.31.13 (vanilla), xserver 1.7.7 and KDE 4.4.4 with KWin's composition enabled on Debian Sid.
What is UnredirectFullscreen= set to in ~/.kde/share/config/kwinrc for you ?
If it's not set do try with UnredirectFullscreen=true and false ( restart the X server after you modify this)
Licaon is offline   Reply With Quote
Old 06-23-10, 10:45 PM   #6
bones_was_here
Registered User
 
Join Date: Jun 2010
Location: Australia
Posts: 28
Default Re: 3D windows hang temporarily on focus change

UnredirectFullscreen is not set, I believe it defaults to enabled (there's a noticeable flicker on a task switch with composition enabled, the same as happens when switching xv to fullscreen). I'll try playing with the setting some when I get home, but disabling it is probably not an option as performance is worse when running the game in a window.
bones_was_here is offline   Reply With Quote
Old 06-27-10, 08:15 AM   #7
Nilith
Registered User
 
Join Date: May 2007
Posts: 18
Default Re: 3D windows hang temporarily on focus change

I don't think those two problems are related.

Mine seems to be somehow related to Xinerama. It doesn't happen with twinview (which I can't use because I have four screens and I don't care about running two window managers). I haven't tried xrandr yet, and don't know if it is even applicable.
Nilith is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Windows 8 could be the next Vista News Archived News Items 0 06-15-12 10:30 AM
Like XP or Vista: how will businesses treat Windows 8? News Archived News Items 0 06-06-12 09:10 AM
Hands-on: Windows 8's SkyDrive News Archived News Items 0 06-04-12 07:30 PM
NVIDIA Brings 18 Years of Experience to Windows 8 News Archived News Items 0 06-03-12 06:20 AM
Sync it up: Hands on with the preview of Windows 8's cloud sync service News Archived News Items 0 06-02-12 08:30 PM

All times are GMT -5. The time now is 05:36 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.