Bug 356366

Summary: Huge performance drop in opengl game after window change (No kwin-releated)
Product: [Plasma] plasmashell Reporter: Luca Mastromatteo <lukycrociato>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: anakin.cs, bhush94, mklapetek, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
URL: https://www.youtube.com/watch?v=0CnvDjhunDk
See Also: https://bugs.kde.org/show_bug.cgi?id=356938
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luca Mastromatteo 2015-12-07 16:49:01 UTC
That's an annoying problem, it only occurs in KDE Plasma, with fglrx drivers, also changing the desktop compositor from kWIn to openbox. I'm not having this problem with the open source drivers.
Basically, opening a game (Team fortress 2 in this case) and then alt+tab and then clicking the taskbar icon to return to it, causes a huge performance drop and input lag in the game. About from 300~fps to 150~
With just using alt+tab when returning to it the problem does not occur.
If I click the game from the taskbar once, alt+tab again to exit from it, and return to it also with alt+tab still the same problem. (That means that the problem occurs after i pressed once the icon in the taskbar to return to it, also if I alt+tab again still the same problem, unless I kill the "plasmashell" process. Here we return back to the beginning.)
That problem does not seem to be kwin/desktop compositor releated.

Reproducible: Always

Steps to Reproduce:
1.Install fglrx drivers
2.Run an opengl game (I was using Team Fortress 2 through Steam)
3.Alt+Tab
4.click on the game icon in the taskbar to return to it


Actual Results:  
The frame-per-second of the game dropped from 300~fps to 150~ 

Expected Results:  
The performance should be the same.

Arch Linux, latest version
Latest catalyst-test package from the AUR (also tried with other catalysts)
Comment 1 Luca Mastromatteo 2015-12-07 16:58:40 UTC
UPDATE= The problem seems to occur also if I simply hover the cursor to the game icon and then alt+tab to it.
Another way to fix instead of killing plasmashell is to hover to another icon instead of the game one and then alt+tab. (ALT+TAB BEFORE HOVERING TO ANOTHER ICON STILL CAUSE THE PERFORMANCE PROBLEM)
Comment 2 Luca Mastromatteo 2015-12-07 17:10:13 UTC
https://www.youtube.com/watch?v=EnsJwMdE8LI
That's another video showing the problem. Sorry but that's a bit complicated.
Comment 3 Luca Mastromatteo 2015-12-07 17:49:00 UTC
Another little update, I've also tried disabling the suggestions in the task manager settings, but nothing. So the problems seems to be something that is happening when I hover the mouse cursor on the game task icon
Comment 4 David Edmundson 2015-12-20 20:44:12 UTC
Thanks.
Comment 5 Thomas Lübking 2015-12-22 15:19:26 UTC
Likely cause: https://bugs.kde.org/show_bug.cgi?id=356938#c33
Comment 6 Martin Klapetek 2015-12-22 16:20:31 UTC
I'll close this as duplicate of 356938, it's the same bug just different hw.

*** This bug has been marked as a duplicate of bug 356938 ***