mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Log chat polling rate changes
This commit is contained in:
parent
0bd34253e7
commit
46d2f305b5
@ -90,13 +90,14 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
// Polling will eventually be replaced with websocket, but let's avoid doing these background operations as much as possible for now.
|
||||
// The only loss will be delayed PM/message highlight notifications.
|
||||
|
||||
if (HighPollRate.Value)
|
||||
TimeBetweenPolls.Value = 1000;
|
||||
else if (!isIdle.Value)
|
||||
TimeBetweenPolls.Value = 60000;
|
||||
else
|
||||
TimeBetweenPolls.Value = 600000;
|
||||
|
||||
Logger.Log($"Chat is now polling every {TimeBetweenPolls.Value} ms");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user