Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluid UI by updating sensors in a background thread. #626

Merged

Conversation

Cereal-Killa
Copy link
Contributor

On computers with lots of devices/sensors, the timer update routine will cause a performance hit on the main window redraw when moving it around. This commit address the issue by moving the timer routine to a backgroundworker object that does the work in an async manner (thread).

Test case: i7 11700, 32GB RAM, RTX2060, 165hz GSYNC monitor, 1TB nvme (plus many other HDDs hooked up).

Before background thread:
https://user-images.githubusercontent.com/25939765/149438820-aa88634a-f634-4d60-b25f-f1b445799e2c.mp4

After background thread:
https://user-images.githubusercontent.com/25939765/149438827-4c2c196f-d61a-4847-9430-2ff409e03623.mp4

…ill cause a performance hit on the main window redraw when moving it around. This commit address the issue by moving the timer routine to a backgroundworker object that does the work in an async manner (thread).
@Cereal-Killa Cereal-Killa changed the title Fluid UI by updating the sensors in a background thread. Fluid UI by updating sensors in a background thread. Jan 14, 2022
@PhyxionNL PhyxionNL merged commit fc74039 into LibreHardwareMonitor:master Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants