From 2bd4da7678b027843cac1a03a1b5f6cc70a7cc81 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 10 May 2025 11:52:02 -0500 Subject: requirements.txt added, significantly reduced cpu usage using timer func and vertex/fragment shader instead of drawing new quad etc every frame --- pix.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pix.py') diff --git a/pix.py b/pix.py index 41d28d6..1e00fcf 100644 --- a/pix.py +++ b/pix.py @@ -4,17 +4,9 @@ from threading import Thread from window import PixDisplay from immich import ImmichConnector -def load_textures(pd): - # Load two images for transition - tex = ImageTexture("image1.jpg") - pd.textures.append(tex) - tex = ImageTexture("image2.jpg") - pd.textures.append(tex) - if __name__ == "__main__": immichConnector = ImmichConnector("http://192.168.1.13", "m5nqOoBc4uhAba21gZdCP3z8D3JT4GPxDXL2psd52EA") pd = PixDisplay() - #t1 = Thread(target=load_textures, daemon=True, args=(pd,)) t1 = Thread(target=immichConnector.idle, daemon=True, args=(pd,)) t1.start() pd.main() -- cgit v1.2.3