-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
add: SIMD Instruction Support for MSVC and GCC/Clang #2823
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
f49beb3
to
e367e87
Compare
src/game/scheduling/dispatcher.hpp
Outdated
@@ -207,12 +207,11 @@ class Dispatcher { | |||
} | |||
|
|||
std::array<std::vector<Task>, static_cast<uint8_t>(TaskGroup::Last)> tasks; | |||
std::vector<std::shared_ptr<Task>> scheduledTasks; | |||
phmap::parallel_flat_hash_set_m<std::shared_ptr<Task>> scheduledTasks; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? this is absurdly slow and the vector already has its own mutex.
The dispatcher is practically the core of the project, any ms will make a big difference, the flash_set only serves to maintain the uniqueness of the elements which is practically non-existent and if it exists the ideal is to find the source of the problem.
This PR is stale because it has been open 45 days with no activity. |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Description:
This pull request enhances the CMake configuration to detect and enable SIMD instruction support (AVX512, AVX2, SSE, etc.) across different compilers, including MSVC and GCC/Clang. These changes allow the project to more effectively leverage existing optimized code for these SIMD instructions, ensuring improved performance on supported platforms. Additionally, it resolves build warnings on Linux and ensures compatibility across various architectures, maximizing the use of advanced hardware capabilities.