ZeCryptic / osu-cat

141 stars 29 forks source link

Performance Fixes and Resizable Window #14

Closed JapanPanda closed 5 years ago

JapanPanda commented 5 years ago

Hiya,

I've changed the reliance on sleep() since using sleep() in a loop will pause the Tkinter program completely which resulted in huge performance loss for my PC (Windows 8.1).

I've replaced it with Tkinter's native .after() function and mainloop() function. In addition, I've added a line of code that closes the python window once the osu-cat window is closed.

Furthermore, I've finished the resizable window (somewhat). The user may resize it but they must tap a key once or move their cursor around to update the Tkinter window. I'm sorry I could not find a way around this, I've looked for hours!

ZeCryptic commented 5 years ago

Thanks a lot for the major performance fixes! Tkinter is kinda annoying to work with but you seem to have come up with a decent solution to the resizing problem. Its not perfect but it works better than any other resize solutions I have come up with so far.