davidzhengyes / ChessFENAgain

Improvements to ChessFEN. Speed optimizations incoming and less breakable code.
The Unlicense
0 stars 0 forks source link

Initialization speed and indicator #16

Open davidzhengyes opened 8 months ago

davidzhengyes commented 8 months ago

Screenshots take a lot of time. According to a user in https://www.reddit.com/r/learnpython/comments/10vm258/pyautogui_what_is_faster/ MSS is better at taking screenshots than pyautogui. https://python-mss.readthedocs.io/examples.html This would increase the speed of taking initial screenshots, but is not a priority as screenshots only need to be taken once, but maybe many times every time FEN is taken as we want to search inside the board image. Additionally, can maybe add flashing window indicator to show that screenshots have been finished? As you need to click on top left and bottom right of analysis board. Possibly set that button to initializing analysis board location, and maybe a separate button to actually take the screenshots, so that GUI is in focus when taking screenshots (can put something in gui) https://forum.qt.io/topic/91289/make-application-blink-on-taskbar