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

Fix loop timings #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Milkitic
Copy link

@Milkitic Milkitic commented Jun 22, 2022

  1. Use StopWatch instead, because the counters will leads to blocking/fake timing behavior currently.
  2. Change the static thread's looping to LongRunning (A new thread which will not affect to thread pool).
  3. Use SpinWait to handle the 0ms looping. This will much lower the CPU usage.

@Milkitic Milkitic requested a review from MikiraSora June 22, 2022 02:34
@MikiraSora MikiraSora requested review from Deliay and MikiraSora and removed request for MikiraSora December 19, 2023 17:02
@Deliay
Copy link
Member

Deliay commented Dec 20, 2023

yf牛逼,另外 @KedamaOvO

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.

2 participants