1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 04:14:26 +08:00

Add log output when judgements aren't being pooled

This commit is contained in:
Dean Herbert
2024-08-13 19:30:29 +09:00
Unverified
parent d74ac57092
commit bb0c9e2497
@@ -7,6 +7,7 @@ using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Pooling;
using osu.Framework.Logging;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
@@ -112,6 +113,9 @@ namespace osu.Game.Rulesets.Judgements
{
base.PrepareForUse();
if (!IsInPool)
Logger.Log($"{nameof(DrawableJudgement)} for judgement type {Result} was not retrieved from a pool. Consider adding to a JudgementPooler.");
Debug.Assert(Result != null);
runAnimation();