mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
Reduce allocaations in ScrollingHitObjectContainer
This commit is contained in:
parent
3aefc91967
commit
6b1de5446a
@ -186,9 +186,9 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
// to prevent hit objects displayed in a wrong position for one frame.
|
||||
// Only AliveEntries need to be considered for layout (reduces overhead in the case of scroll speed changes).
|
||||
// We are not using AliveObjects directly to avoid selection/sorting overhead since we don't care about the order at which positions will be updated.
|
||||
foreach (var entry in AliveEntries)
|
||||
foreach (var entry in AliveDrawableMap)
|
||||
{
|
||||
var obj = entry.Drawable;
|
||||
var obj = entry.Value;
|
||||
|
||||
updatePosition(obj, Time.Current);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user