mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Add log output when judgements aren't being pooled
This commit is contained in:
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();
|
||||
|
Loading…
Reference in New Issue
Block a user