Since def change_image is causing a slow down.
You might consider creating images at load time and storing them in a list.
Instead of recreating them during main loop.
More code the main loop handles the slower it will run.
Learning Python Profilers would let you know. What code is using the most time.
You might consider creating images at load time and storing them in a list.
Instead of recreating them during main loop.
More code the main loop handles the slower it will run.
Learning Python Profilers would let you know. What code is using the most time.
99 percent of computer problems exists between chair and keyboard.