mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 23:31:11 +01:00
Reduce insert_splash_screen processing time with python3 from ~1m20s to ~0.6s
This commit is contained in:
parent
98f438e742
commit
273206f314
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user