joewing / jwm

Joe's Window Manager
http://joewing.net/projects/jwm
MIT License
517 stars 85 forks source link

2 issues when running games in fullscreen mode (lesser fps and some random drops) #373

Open manero6 opened 7 years ago

manero6 commented 7 years ago

Hi!

I noticed these 2 issues when running Wine games in fullscreen mode. Notice that this happened just with certain Wine games and regardless of the Wine patch used (vanilla or Staging or Gallium Nine) and it appeared a month ago or so. No native game had this issue but I didn't play many of them lately.

I recorded 4 videos that should explain the situation (I tried 2 games):

· The 1st one is PES 2013 running with Wine Gallium Nine. The video is quite long but I put a timeline in the description to easily check the issues. At first the game suffers some random fps drops that once appear they somehow enter in a constant loop, by pressing Alt+Enter I was able to exit the fullscreen and the issue disappeared. Then I found out that in general the performances are slightly worst when playing fullscreen, if you compare the Gallium Hud when I switch the two mode you'll see that it's way more stable when windowed.

· The 2nd video is Stronghold Crusader II running with vanilla Wine. After a few seconds it can bee seen that the "drop loop" kicks in and the fps start to regularly drop, it also suffer some lower fps at this point. Once windowed the loop goes away and the fps are becoming more stable, then when switching back to fullscreen the issue doesn't appear anymore but IMO it would've if I played more.

· The 3rd video is PES 2013 running without any Window Manager (I just had some xterm in the .xinitrc) The game suffer no issues when fullscreen and the performances are similar to the 1st video when running windowed, switching to windowed with Alt+Enter makes no difference here.

· The 4th video is Stronghold Crusader II running without any Window Manager (I just had some xterm in the .xinitrc) Same as above, the loop never appear and the performances are the same whether is fullscreen or windowed.

So at the end: Some Wine games suffer some lesser stability and this strange "drop loop" when running fullscreen on JWM; no problems if windowed or without JWM.

Unfortunately I had no time to test another WM, I'll if needed.

Hope this post was helpful, my specs are: Arch Linux (all testing repos activated) Mesa-git (from this repo) Wine-Gaming-Nine from the AUR R9 380 Xeon e3-1245

ghost commented 7 years ago

Hi, what version of JWM are you running, and what packages were updated a month ago when you began to notice this problem. As you may realize this could be any number of things, and probably not related to JWM itself. You might try rolling back to the package versions you previously had to see which package is causing the issue. Did you update JWM at some point and notice it then? (Are you running the latest git?) Did you notice it after other packages were updated?

manero6 commented 7 years ago

Hi! I was running 2.3.6 yesterday when I recorded those videos and today I installed the git version (through AUR) and the same issue appears on 2.3.7 I noticed this issue some time ago but then I thought it was just that specific game (F.E.A.R. 2) and I didn't really check out what was creating it. Anyway i tried out some other WM (twm, ratpoison) and PES runs fine at fullscreen there, no issue at all. I'll try to downgrade later to see if I'm able to avoid this issue.