diff --git a/MiniEngine.cpp b/MiniEngine.cpp index a259ade..361a7c2 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -2347,6 +2347,24 @@ namespace MiniEngine return std::make_tuple(ptr->major,ptr->minor,ptr->patch); } + //static + int SDLSystem::GetCPUCount() + { + return SDL_GetCPUCount(); + } + + //static + int SDLSystem::GetCPUCacheLineSize() + { + return SDL_GetCPUCacheLineSize(); + } + + //static + int SDLSystem::GetSystemRAM() + { + return SDL_GetSystemRAM(); + } + /// Global Executor For class Timer Uint32 _global_timer_executor(Uint32 interval,void* param) { diff --git a/MiniEngine.h b/MiniEngine.h index ab9a544..12632f4 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -634,6 +634,11 @@ namespace MiniEngine static std::tuple GetTTFCompileVersion(); static std::tuple GetTTFLinkedVersion(); + static int GetCPUCount(); + static int GetCPUCacheLineSize(); + /// RAM is calculated in MB. + static int GetSystemRAM(); + class Android { public: