1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Log chat polling rate changes

This commit is contained in:
Dean Herbert 2022-01-13 17:31:55 +09:00
parent 0bd34253e7
commit 46d2f305b5

View File

@ -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>