mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Reduce the possibility of recomputing drawables when underlying beatmap hasn't changed
This commit is contained in:
parent
12716d2ab4
commit
cab12ee55a
@ -49,6 +49,8 @@ namespace osu.Game.Screens.Select
|
|||||||
get { return beatmap; }
|
get { return beatmap; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
if (beatmap == value) return;
|
||||||
|
|
||||||
beatmap = value;
|
beatmap = value;
|
||||||
|
|
||||||
pendingBeatmapSwitch?.Cancel();
|
pendingBeatmapSwitch?.Cancel();
|
||||||
|
@ -100,6 +100,8 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
get { return beatmap; }
|
get { return beatmap; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
if (beatmap == value) return;
|
||||||
|
|
||||||
beatmap = value;
|
beatmap = value;
|
||||||
Scores = null;
|
Scores = null;
|
||||||
|
|
||||||
|
@ -313,15 +313,15 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
bool beatmapSetChange = false;
|
bool beatmapSetChange = false;
|
||||||
|
|
||||||
if (!beatmap.Equals(Beatmap?.BeatmapInfo))
|
if (beatmap.Equals(Beatmap?.BeatmapInfo))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID)
|
||||||
|
sampleChangeDifficulty.Play();
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID)
|
sampleChangeBeatmap.Play();
|
||||||
sampleChangeDifficulty.Play();
|
beatmapSetChange = true;
|
||||||
else
|
|
||||||
{
|
|
||||||
sampleChangeBeatmap.Play();
|
|
||||||
beatmapSetChange = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
selectionChangeNoBounce = beatmap;
|
selectionChangeNoBounce = beatmap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user