mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
Initial macOS port bringup (#52)
This commit is contained in:
parent
a2abffd37b
commit
974edaa649
84 changed files with 157 additions and 122 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
#if BOOST_OS_WINDOWS > 0
|
||||
#if BOOST_OS_WINDOWS
|
||||
#include <psapi.h>
|
||||
#endif
|
||||
|
||||
|
@ -189,7 +189,7 @@ void LatteShaderCache_load()
|
|||
|
||||
const auto timeLoadStart = now_cached();
|
||||
// remember current amount of committed memory
|
||||
#if BOOST_OS_WINDOWS > 0
|
||||
#if BOOST_OS_WINDOWS
|
||||
PROCESS_MEMORY_COUNTERS pmc1;
|
||||
GetProcessMemoryInfo(GetCurrentProcess(), &pmc1, sizeof(PROCESS_MEMORY_COUNTERS));
|
||||
LONGLONG totalMem1 = pmc1.PagefileUsage;
|
||||
|
@ -285,7 +285,7 @@ void LatteShaderCache_load()
|
|||
|
||||
LatteShaderCache_updateCompileQueue(0);
|
||||
// write load time and RAM usage to log file (in dev build)
|
||||
#if BOOST_OS_WINDOWS > 0
|
||||
#if BOOST_OS_WINDOWS
|
||||
const auto timeLoadEnd = now_cached();
|
||||
const auto timeLoad = std::chrono::duration_cast<std::chrono::milliseconds>(timeLoadEnd - timeLoadStart).count();
|
||||
PROCESS_MEMORY_COUNTERS pmc2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue