cleanup isometric skin renderer
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 2m21s

This commit is contained in:
Lee
2024-04-11 03:48:54 +01:00
parent a16fda1b53
commit b682153ebb
11 changed files with 222 additions and 155 deletions

View File

@ -133,7 +133,9 @@ public class PlayerService {
return cache.get();
}
byte[] skinPartBytes = part.getSkinPartParser().getPart(player.getSkin(), part.getName(), renderOverlay, size);
long before = System.currentTimeMillis();
byte[] skinPartBytes = part.getSkinPartParser().renderPart(player.getSkin(), part.getName(), renderOverlay, size);
log.info("Took {}ms to render skin part: {} for player: {}", System.currentTimeMillis() - before, part.getName(), player.getUniqueId());
CachedPlayerSkinPart skinPart = new CachedPlayerSkinPart(
key,
skinPartBytes