1
0
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:
Dean Herbert 2024-08-13 19:30:29 +09:00
parent d74ac57092
commit bb0c9e2497
No known key found for this signature in database

View File

@ -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();