DragonSurvivalTeam / DragonSurvival

Other
49 stars 41 forks source link

Made skin loading asynchronous to prevent stalls #660

Closed seelderr closed 1 month ago

seelderr commented 1 month ago

Skin generation will now happen on a separate thread. This fixes a lot of issues, such as stalls when loading in initially, or in the dragon editor, or when equipping armor. If armor is being equipped and the skin isn't ready yet, no armor will be shown. If a player skin is trying to be loaded and nothing is ready yet, it will load the previous player skin (if available) or the default skin as a fallback.