mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 20:53:04 +08:00
Add some debugging
This commit is contained in:
parent
77830527e7
commit
69b01e7270
@ -8,6 +8,7 @@ using System.Linq;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Online.Spectator;
|
using osu.Game.Online.Spectator;
|
||||||
using osu.Game.Screens.Spectate;
|
using osu.Game.Screens.Spectate;
|
||||||
@ -108,6 +109,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
|||||||
|
|
||||||
double targetTrackTime = validInstances.Select(i => i.GetCurrentTrackTime()).Max();
|
double targetTrackTime = validInstances.Select(i => i.GetCurrentTrackTime()).Max();
|
||||||
|
|
||||||
|
var instanceTimes = string.Join(',', validInstances.Select(i => $" {i.User.Id}: {(int)i.GetCurrentTrackTime()}"));
|
||||||
|
Logger.Log($"target: {(int)targetTrackTime},{instanceTimes}");
|
||||||
|
|
||||||
foreach (var inst in validInstances)
|
foreach (var inst in validInstances)
|
||||||
{
|
{
|
||||||
Debug.Assert(inst != null);
|
Debug.Assert(inst != null);
|
||||||
|
@ -103,12 +103,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
|||||||
if (catchupRequired)
|
if (catchupRequired)
|
||||||
{
|
{
|
||||||
Beatmap.Track.AddAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
Beatmap.Track.AddAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
||||||
Logger.Log($"{User.Id} catchup started (behind: {timeBehind})");
|
Logger.Log($"{User.Id} catchup started (behind: {(int)timeBehind})");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Beatmap.Track.RemoveAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
Beatmap.Track.RemoveAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
|
||||||
Logger.Log($"{User.Id} catchup finished (behind: {timeBehind})");
|
Logger.Log($"{User.Id} catchup finished (behind: {(int)timeBehind})");
|
||||||
}
|
}
|
||||||
|
|
||||||
IsCatchingUp = catchupRequired;
|
IsCatchingUp = catchupRequired;
|
||||||
|
Loading…
Reference in New Issue
Block a user