mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
some more dynamic settings
This commit is contained in:
parent
074b9f94db
commit
cf229a8e9f
8 changed files with 28 additions and 22 deletions
|
|
@ -1760,8 +1760,8 @@ std::string Emulator::GetFormattedTitle(double fps) const
|
|||
|
||||
u32 Emulator::GetMaxThreads() const
|
||||
{
|
||||
u32 max_threads = static_cast<u32>(g_cfg.core.llvm_threads);
|
||||
u32 thread_count = max_threads > 0 ? std::min(max_threads, std::thread::hardware_concurrency()) : std::thread::hardware_concurrency();
|
||||
const u32 max_threads = static_cast<u32>(g_cfg.core.llvm_threads);
|
||||
const u32 thread_count = max_threads > 0 ? std::min(max_threads, std::thread::hardware_concurrency()) : std::thread::hardware_concurrency();
|
||||
return thread_count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue