tf2-bot-kicker-gui icon indicating copy to clipboard operation
tf2-bot-kicker-gui copied to clipboard

UI is very laggy when game is not running

Open YoukaiCat opened this issue 1 year ago • 4 comments

When tf2 is started it's working perfectly fine, but when it's not running, UI have noticeable response delay. Win 10, compiled by myself. video

YoukaiCat avatar Oct 08 '22 19:10 YoukaiCat

Are you compiling in release mode? Release mode in Rust is an insane speedup vs Debug mode. But otherwise I do admit performance has not been a primary focus for me so far but as the project gets bigger I may need to work on some optimizations.

Bash-09 avatar Oct 09 '22 00:10 Bash-09

Can confirm, it happens on the latest release. For me, windows periodically reports the window as “Not Responding”. image

RaymondTracer avatar Mar 25 '23 08:03 RaymondTracer

This is likely due to it trying to reconnect to TF2 while it's closed. I've made some changes which reduces how often this happens which should help considerably but it does still occasionally stutter when it tries to connect.

I intend to move all the IO and communication to a background thread so the UI can remain responsive at all times, but until then if you build the most recent version it should be significantly better.

Bash-09 avatar Apr 23 '23 13:04 Bash-09

All this IO has been moved onto a background thread so this should hopefully not be an issue anymore for new builds. When I eventually confirm it on Windows I'll close this issue.

Bash-09 avatar Apr 29 '23 07:04 Bash-09