A lot of us are used to keeping many tabs open at the same time. Due to recent browser updates, background tabs are now shutdown by browsers like Google Chrome, causing you to be disconnected.

I've seen a lot of people complaining about it. Some people have asked why I added an "autokicker" system -- the answer is I haven't! (Why on earth would I do that??) It's actually because of 2 new "features" introduced by Chrome as of version 87 -- "Tab Throttling" and "Occlusion Tracking". (click the link if you want to learn more about them)

In a nutshell, unless you have AW on top where you can see it, Chrome will disconnect you after a short time.

To fix it, you can do the following:

1) open a browser tab and go to chrome://flags
2) search for "Throttle Javascript timers in background" and set it to "Disabled"
3) search for "Calculate window occlusion on Windows" and set it to "Disabled"
4) restart Chrome
5) profit



Thanks to Witch-Doctor for originally finding out about this

  |

Коментари.

Вземи премиум и отключи всички добавки
Коментари.: 13   Посещава се от: 431 users
29.06.2021 - 15:12
 Sid (Админ)


You beat me too it, was thinking of posting the same thing.

And here we all thought you just didn't want people loitering in the lobbies anymore lol.
Зареждане......
Зареждане......
29.06.2021 - 15:30
Thanks witch-doctor and Dave
----
Lest we forget
Moja Bosna Ponosna
Зареждане......
Зареждане......
29.06.2021 - 15:43
I love you guys
Зареждане......
Зареждане......
29.06.2021 - 15:55
 Mobster (Мод)
Holy shit. This may fix my problem about saving a world map with different background. I'll comment back here when I try it.
Зареждане......
Зареждане......
29.06.2021 - 22:44
Написано от Dragon Spirit, 29.06.2021 at 22:43

You saved my life
Зареждане......
Зареждане......
30.06.2021 - 22:13
 Kord
Great topic! I can't tell you how many game lobbies I've been dropped from because I'm watching YouTube while it fills. Easy fix. Thank you!
Зареждане......
Зареждане......
01.07.2021 - 05:15
Wait, does this only apply to Chrome or can this be extrapolated to other browsers too?
----
Don't ever look down on someone unless you're helping him up. Don't ever treat someone else the way you wouldn't want others to treat you.
We're all people.

Зареждане......
Зареждане......
01.07.2021 - 08:46
 Dave (Админ)
Написано от RaulPB, 01.07.2021 at 05:15

Wait, does this only apply to Chrome or can this be extrapolated to other browsers too?


I think all the major browsers have their own version of the same thing now.

- Edge has something called "sleeping tabs": https://www.tenforums.com/tutorials/165231-how-enable-disable-sleeping-tabs-microsoft-edge-chromium.html
- Opera has "tab snoozing": https://www.thewindowsclub.com/enable-or-disable-tab-snoozing-in-the-opera-web-browser
- Firefox has it too: https://www.thewindowsclub.com/enable-or-disable-tab-sleep-feature-in-firefox-browser

I haven't tested any of the above however, so your mileage my vary. I've only tested it in Chrome (and in Vivaldi, which has the identical settings as Chrome)
----
All men can see these tactics whereby I conquer,
but what none can see is the strategy out of which victory is evolved.
--Sun Tzu

Зареждане......
Зареждане......
01.07.2021 - 08:48
 Agel
Написано от RaulPB, 01.07.2021 at 05:15

Wait, does this only apply to Chrome or can this be extrapolated to other browsers too?

You can try to go to settings and explore in your browser.

But for Edge (I use Edge since AtWar uses microsoft tech it works better in Edge unless it changed since I got that info) you go to settings then you search system and in systems you should be able to see the right option.
Зареждане......
Зареждане......
04.07.2021 - 13:36
It is my belief that most players will check this thread and follow the instructions without carefully analyzing what they're doing.

Given that, I want to point out that most people should NOT do this!

Need a TL;DR? Just because you do, Do NOT do this!

--

Yes, it's annoying that our favorite game disconnects us like this, especially in the lobby waiting for a game to fill (It happened to me a few times before being linked to this post).

However, these two features in particular are extremely useful optimizations. From the linked article:

цитирам:

Google found that JavaScript Timers represent more than 40% of the work in background tabs. Chrome now prevents background tabs from waking up your CPU too often and rendering tabs that you can't see. Specifically, the browser throttles JavaScript timer wake-ups in background tabs to once per minute. This reduces CPU usage by up to 5x and extends battery life up to 1.25 hours, according to the team's internal testing. Background features like playing music and getting notifications are unaffected.

Occlusion Tracking, which was previously added to Chrome OS and Mac, is now available on Windows. The feature allows Chrome to know which windows and tabs are visible to you and optimize resources for the tabs you are using, not the ones you've minimized. Chrome as a result is up to 25% faster to start up and 7% faster to load pages, all while using less memory.


To most of you, my advice is the following: Do NOT disable them. Especially if you don't know what you're doing!

Disable them only if you:
* Know what the Chrome flag does, are aware of the implications in your browser resources usage, and are ok with the tradeoff.
* Know that Chrome flags can, at any point, be removed and the feature to be enabled by default. Doesn't matter if you disabled it before.
* Are a developer testing the flags on your site.
* Don't care and just want atWar to work (and won't complain about your browser in the future, although I know you will...).

Chrome already warns you about this when you enter the flags page:

цитирам:

WARNING: EXPERIMENTAL FEATURES AHEAD! By enabling these features, you could lose browser data or compromise your security or privacy.


This isn't a long-term solution anyway. To ensure that things are working the atWar client will have to be modified (sooner rather than later) to use a more efficient, browser-friendly solution.
Зареждане......
Зареждане......
04.07.2021 - 15:31
 Dave (Админ)
Написано от clovis1122, 04.07.2021 at 13:36

This isn't a long-term solution anyway. To ensure that things are working the atWar client will have to be modified (sooner rather than later) to use a more efficient, browser-friendly solution.


If you know a better solution, please tell me. I've researched this and haven't found one, because as far as I can tell its not any fault with the atWar client. It's completely a browser thing and there's not a damned thing we can do about it from our side. (But again, tell me if I'm wrong, because I'd love to know if there's some solution I couldn't find... short of building our own desktop [not browser] client)

And, for what its worth, I really don't see the big deal here, it's a pretty harmless setting to change...
----
All men can see these tactics whereby I conquer,
but what none can see is the strategy out of which victory is evolved.
--Sun Tzu

Зареждане......
Зареждане......
06.07.2021 - 01:05
What do I do if I use macOS?
----
.
Зареждане......
Зареждане......
13.01.2022 - 05:52
I am disconnected again and the parameters entered here are gone, is there any solution?
One thing I noticed and I don't know if it can be useful is that on the main screen "https://it.atwar-game.com/" it never disconnects
Зареждане......
Зареждане......



Hits total: 69041 | This month: 316
atWar

About Us
Contact

Поверителност | Правила на играта | Знамена | Partners

Copyright © 2024 atWar. All rights reserved.

Присъединете се към нас.

Разпространете новината.