Skip to content

Fix loop timings#62

Open
Milkitic wants to merge 3 commits intoOsuSync:masterfrom
Milkitic:fix/loop-timings
Open

Fix loop timings#62
Milkitic wants to merge 3 commits intoOsuSync:masterfrom
Milkitic:fix/loop-timings

Conversation

@Milkitic
Copy link
Copy Markdown

@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
Copy Markdown
Member

Deliay commented Dec 20, 2023

yf牛逼,另外 @KedamaOvO

@Deliay Deliay requested a review from KedamaOvO December 20, 2023 05:43
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