-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Mtgo freezing 30 seconds every ingame action #107
Comments
Thanks for the report. Looks similar to #68
|
There it is, I've played a game for a few turns, and then concede. I've noticed it gets sluggish when there's a lot of cards involved, for example when 4 or 5 cards go to the graveyard at once. The both clock stops, and then they update after a while. Sorry for not getting into more detail yesterday, I'm on linux (fedora 32), with the kernel 5.8.11, and a AMD fx-8350 and 8 GB of RAM in case that helps. I've included the output log as a file, since It's pretty long. |
Thanks - nothing strange here, I get a very similar output.. From #68, using an old image may help - but now it requires a workaround:
let me know if it gets smoother If you feel adventurous enough, you can give a try using wine outside docker, by installing winehq-devel using https://wiki.winehq.org/Fedora and then by following for instance this guide https://github.com/pauleve/docker-mtgo/wiki/macOS:-installing-MTGO-using-Wine from step 3 or https://appdb.winehq.org/objectManager.php?sClass=version&iId=32007 ; it could be very helpful to see if it's due to wine or a weird bug with the docker image.. |
Yeah sure :) I'm not sure if I'm executing the old image, I'm using
and I'm getting a crash when I'm writing the password (I'm not sure I'm executing it correctly) I will try to install it via wine today, I haven't had time. :) |
Ah, I pushed a fixed for the wine 4.9 image: |
Any updates on this one? 4.9 just works? UPD: It seems to work better. It might be some sort of cognitive bias, but I remember MTGO working smoother before the "new UI" update. Is there anything I can do to help investigate? |
Another informal report: It seems like when I disconnect an external display, the lag almost disappears (tested on 4.9). Also, the more content gets buffered by MODO, the less lag there is. |
Interesting - does disconnecting the second monitor also improve the freezes with the latest wine, using Regarding buffered content, yes, I also observe that as well; but the lag is not really bad, nothing that locks the game for several seconds. |
Ah, and if it is indeed related to multimonitor, you may want to try enabling "Emulate virtual desktop" you can tick using with the |
Nope, I only have one monitor. I will try to test it out tomorrow. I've just started a new job and haven't got much time lately :) |
Testing
and Next time I play on 4.9, I'll do my best to capture Update:I have an annotated CPU / mem usage capture over the course of an hour of playing MTGO, but it's not worth posting it here since it was stable on 69.6%±3% total and memory was stable too, All the freezes have to do with caching / loading resources and are the same as Windows users report. Moving forward I'll test it with the newest Wine, but so far it seems like the solution to all the freezes is — just use 4.9 and keep using it till it stops lagging. |
Well, having tested version 4.9, definitely works better. I had freezes only in the first 2 minutes of the game, and then it went quite well. I play a click intensive deck, and I was losing about 1 second every time I clicked and got a response, not a big deal since I'm playing in TP mostly. Latest version freezes feel like io/wait, and maybe its related to my hardware. I'm getting a new SSD soon, so I will reinstall everything on another distro, to see if it improves :) Also (and kinda unrelated) I've testing installing from wine directly without the docker container, and since it takes more than one hour to install .net 4.6 (or a lot, never finished it) ended giving up on it., I'm not sure if it's just me again, though. Also, lutris mtgo installer, doesn't work either. Managed to run it once, and then it broke somehow. I've been using virtualbox lately and it works, so it's not like I'm not playing, but 4.9 is definitely playable, specially if you don't go to deckbuilding and play click intensive decks. |
Just wanted to add that I'm also having this issue and it makes play pretty unfun. I tried with the latest master image as well as panard/mtgo:pr106. pr106 is a little bit better than master but it still freezes frequently enough to hamper play. |
@kylemarkwilliams have you tried with the wine-4.9 image? From above comments it might help.. Can you post the output of If it is related to caching / loading resources, the file system used by docker may play a big role here.. I'm using btrfs and have very few lags (mainly in the first minutes of launching the app..) |
@pauleve I have not tried Wine 4.9, so I'll give that a go next time I play. My fs is ext4, but it always has been and it hasn't been an issue before. I've been using this project for years now with no problems. I recently came back after a break from magic and found it to be lagging. Here is the output of
|
Given your setup, Docker is probably not the issue indeed. Are you on KDE Plasma? I did some brief tests and it might be that it feels slower when I'm using KDE rather than Unity or GNOME ; but I need to do more tests to confirm that..
and in the Graphics tab, select "Emulate a virtual desktop" Also do you experience the freezes only during a game, or even when navigating tabs/building a deck/trading/...? |
Well, after a few days, I've managed to fix it. While I was doing experiments with docker at AWS for a web application I'm developing for work, I discovered RHEL and fedora use an alternative of docker called podman because Red Hat parted ways (you maybe know this, but I didn't at the time). So after testing a little bit, tried to run this image on podman, and gave up. Checked the docker version I had, and compared with the one in official fedora repos, and turns out the docker version that comes is not the most updated, since they prefer you use podman. Also, it crashed sometimes on this docker image because it had the inodes limited to a small number, don't really know why. In the end was using a kinda old version of docker, installed the newest one (4 days ago while writting this comment) directly from docker repo, and It was supposed to work well in fedora, but for me it couldn't start on systemctl. So, to not making this comment much longer, I got back to arch, found the most updated version of the image still froze my system (probably due to hardware) and then I installed 4.9, and it just works great. In conclusion, I got back to arch, got fed up of fedora due mutliple issues at work and in my workstation, and at least now I can play normally. Thanks for the help :) |
Thanks for the detailed feedback, and happy to hear that it is working well for you now :-) |
Hullo! Popping in to try and add my experiences to the pile. This probably isn't all that useful given the edit in #107 (comment) seems to have roughly pinpointed the problem, but, here you go. (A big thanks for maintaining this, too. 😄) EnvironmentOutput of
|
Do you have an nvidia graphics card? If so, #132 may be worth a try:
wget -O run-mtgo https://raw.githubusercontent.com/pauleve/docker-mtgo/master/run-mtgo
chmod +x run-mtgo
Let me know if helps or not... |
@MrCarri & @pauleve I've been having this issue as well for a while, seemingly irrelevant of wine version and even without docker (plain wine and/or lutris runs). I played a quick match with multiple occasions causing this "UI Freeze" effects from 5secs up to 1-2 mins. This is on KDE Plasma. I think it's reasonable to say this issue is DE/window-manager dependent. I also suspect that compositing WMs might be the actual cause though toggling compositing (via system settings) on Cinnamon/Plasma makes no difference for me. I will continue experimenting. |
I'm confirming that I had freezes on non-compositing XMonad on Ubuntu 20.04.
…On Fri, 24 Dec 2021, 21:27 John Athanasiou, ***@***.***> wrote:
@MrCarri <https://github.com/MrCarri> & @pauleve
<https://github.com/pauleve> I've been having this issue as well for a
while, seemingly irrelevant of wine version and even without docker (plain
wine and/or lutris runs).
I played a quick match with multiple occasions causing this "UI Freeze"
effects from 5secs up to 1-2 mins. This is on KDE Plasma.
Then, without any change in my run method I rebooted into an Openbox
session.
There were some flickering effects when alt-tabbing the game's windows
*but* there were 0 freezes and the animations (eg tap/untap) were
smoother than I've seen in quite a while.
I think it's reasonable to say this issue is DE/window-manager dependent.
I also *suspect* that compositing WMs might be the actual cause though
toggling compositing (via system settings) on Cinnamon/Plasma makes no
difference for me. I will continue experimenting.
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2DJQ47RTUDGXWHQAQLGKTUSTQU5ANCNFSM4R4T6XXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
This is so weird... Even though the Plasma "start without compositor" setting didn't help I just now managed to KWIN_COMPOSE=N pre-login and this seemingly makes my MTGO behave much more consistently. Is there a chance that someone between you,me and OP have a "different kind of freezing" ? |
Perhaps. And perhaps it has to do with the way I was starting my WM. Back
in the xinit days I used to understand how it happens, these days I have no
idea how Ubuntu "knows" that I have XMonad and what does it start with.
Perhaps it starts some Ubuntu DE without me noticing...
…On Sat, 25 Dec 2021, 02:48 John Athanasiou, ***@***.***> wrote:
I'm confirming that I had freezes on non-compositing XMonad on Ubuntu
20.04.
This is so weird... Even though the Plasma "start without compositor"
setting didn't help I just now managed to KWIN_COMPOSE=N
<https://community.kde.org/KWin/Environment_Variables#KWIN_COMPOSE>
pre-login and this seemingly makes my MTGO behave much more consistently.
Is there a chance that someone between you,me and OP have a "different
kind of freezing" ?
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2DJQ53G6QGRBQHHF5566TUSUWIPANCNFSM4R4T6XXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Commenting on this issue 1.5 years after reporting that MTGO kept freezing for me as well. It is working pretty much perfectly now. Only minor issue is that right click takes about 5 seconds to respond. Same hardware and OS (KDE Neon), but just with latest updates and a fresh run of Docker info in case it's useful.
|
Closing old inactive bugs. Feel free to open a new issue if still occurring, with info on Linux distribution, window manager, graphics card, and |
Using latest image, mtgo:2020-09-18, and issue102:
I'm experimenting mtgo freezes every action for about 30 seconds, and then updates the clock. I'Collection and deck building is slow but doable. How could I debug it, so I can post more information?
The text was updated successfully, but these errors were encountered: