1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-09 21:51:45 +00:00

Reduce insert_splash_screen processing time with python3 from ~1m20s to ~0.6s

This commit is contained in:
BestPig 2021-09-25 18:14:18 +02:00 committed by SciresM
parent 98f438e742
commit 273206f314

View file

@ -16,7 +16,7 @@ def convert_image(image_fn):
assert w == 720
assert h == 1280
splash = splash.convert('RGBA')
splash_bin = b''
splash_bin = bytearray()
for row in range(SPLASH_SCREEN_WIDTH):
for col in range(SPLASH_SCREEN_HEIGHT):
r, g, b, a = splash.getpixel((col, row))