1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 07:43:00 +08:00

Merge pull request #27132 from EVAST9919/beatmap-panel-texture-alloc

Fix huge allocation overhead during beatmap texture creation in song-select screen
This commit is contained in:
Dean Herbert 2024-02-12 01:43:31 +08:00 committed by GitHub
commit 7bc571dd51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ namespace osu.Game.Beatmaps
private TextureUpload limitTextureUploadSize(TextureUpload textureUpload)
{
var image = Image.LoadPixelData(textureUpload.Data.ToArray(), textureUpload.Width, textureUpload.Height);
var image = Image.LoadPixelData(textureUpload.Data, textureUpload.Width, textureUpload.Height);
// The original texture upload will no longer be returned or used.
textureUpload.Dispose();