Update progress bar/info every X seconds
Submitted by lucky luciano on Fri, 11/23/2012 - 07:09
Description:
The client uses more CPU that it should because it updates the progress bar and download info in real time. It would be nice to limit it to at most 1 per second or a customisable value.
Thanks!
(1 vote)
- Log in to post comments
Comments
You raise a very good point.
You raise a very good point. The process of updating the progress bar is relatively intensive for something that may be happening hundreds of times a second, if there are a lot of uploads and/or downloads in progress. If I were to try different possible improvements, would you be able to try them out and see if they make a difference?
I took your advice and
I took your advice and limited the length of time each download and upload updates their progress. It's currently set to half a second, but I might add a setting later. Let me know if you notice a difference:
http://www.slsknet.org/SoulseekQt/Windows/SoulseekQt-11-23-2012.exe
Thanks, Nir