Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use omp_get_num_procs to set the number of OpenMP threads rather than…
… our core count detection.
  • Loading branch information
jordan-woyak committed Feb 17, 2013
1 parent 123035a commit 537d5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/Src/TextureDecoder.cpp
Expand Up @@ -692,7 +692,7 @@ inline void SetOpenMPThreadCount(int width, int height)
if (g_ActiveConfig.bOMPDecoder && width > 127 && height > 127)
{
// don't span to many threads they will kill the rest of the emu :)
omp_set_num_threads((cpu_info.num_cores + 2) / 3);
omp_set_num_threads((omp_get_num_procs() + 2) / 3);
}
else
{
Expand Down

0 comments on commit 537d5ea

Please sign in to comment.