mirror of
https://github.com/ppy/osu
synced 2025-02-18 11:26:57 +00: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:
commit
7bc571dd51
@ -59,7 +59,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
private TextureUpload limitTextureUploadSize(TextureUpload textureUpload)
|
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.
|
// The original texture upload will no longer be returned or used.
|
||||||
textureUpload.Dispose();
|
textureUpload.Dispose();
|
||||||
|
Loading…
Reference in New Issue
Block a user