mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-11 01:08:30 +12:00
Fix crash when per-core overlay is enabled on linux.
This commit is contained in:
parent
547dcd89bc
commit
5f484b22d2
1 changed files with 3 additions and 3 deletions
|
@ -572,12 +572,12 @@ void LatteOverlay_init()
|
||||||
SYSTEM_INFO sys_info;
|
SYSTEM_INFO sys_info;
|
||||||
GetSystemInfo(&sys_info);
|
GetSystemInfo(&sys_info);
|
||||||
g_state.processor_count = sys_info.dwNumberOfProcessors;
|
g_state.processor_count = sys_info.dwNumberOfProcessors;
|
||||||
|
#else
|
||||||
|
g_state.processor_count = std::thread::hardware_concurrency();
|
||||||
|
#endif
|
||||||
|
|
||||||
g_state.processor_times.resize(g_state.processor_count);
|
g_state.processor_times.resize(g_state.processor_count);
|
||||||
g_state.cpu_per_core.resize(g_state.processor_count);
|
g_state.cpu_per_core.resize(g_state.processor_count);
|
||||||
#else
|
|
||||||
g_state.processor_count = 1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LatteOverlay_updateStats(double fps, sint32 drawcalls)
|
void LatteOverlay_updateStats(double fps, sint32 drawcalls)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue