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

Replace YieldProcessor with sleep for 10 milliseconds due to busy-wait loop #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Named-Blade
Copy link

Calling from::DLSY::wait_for_system or/ and from::CS::SoloParamRepository::wait_for_params causes noticeable slowdowns, and can cause a total hang if called too many times (on my machine, around 14 calls to those functions are enough to completely stop the loading process). I replaced YieldProcessor with std::this_thread::sleep_for(std::chrono::milliseconds(10)), and this has fixed the problem.

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.

1 participant