VIDEO: system info output
parent
97ca126828
commit
06370d3827
|
@ -286,7 +286,6 @@ AppState App::onInit() {
|
|||
SDL_Init(SDL_INIT_TIMER|SDL_INIT_EVENTS);
|
||||
_threadPool.init();
|
||||
|
||||
Log::debug("detected %u cpus", core::cpus());
|
||||
const std::string& content = _filesystem->load(_appname + ".vars");
|
||||
core::Tokenizer t(content);
|
||||
while (t.hasNext()) {
|
||||
|
|
|
@ -255,6 +255,24 @@ core::AppState WindowedApp::onInit() {
|
|||
|
||||
core::Singleton<io::EventHandler>::getInstance().registerObserver(this);
|
||||
|
||||
Log::info("CPU count: %d", SDL_GetCPUCount());
|
||||
Log::info("CacheLine size: %d", SDL_GetCPUCacheLineSize());
|
||||
Log::info("RDTSC: %d", SDL_HasRDTSC());
|
||||
Log::info("Altivec: %d", SDL_HasAltiVec());
|
||||
Log::info("MMX: %d", SDL_HasMMX());
|
||||
Log::info("3DNow: %d", SDL_Has3DNow());
|
||||
Log::info("SSE: %d", SDL_HasSSE());
|
||||
Log::info("SSE2: %d", SDL_HasSSE2());
|
||||
Log::info("SSE3: %d", SDL_HasSSE3());
|
||||
Log::info("SSE4.1: %d", SDL_HasSSE41());
|
||||
Log::info("SSE4.2: %d", SDL_HasSSE42());
|
||||
Log::info("AVX: %d", SDL_HasAVX());
|
||||
Log::info("AVX2: %d", SDL_HasAVX2());
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 9)
|
||||
Log::info("NEON: %d", SDL_HasNEON());
|
||||
#endif
|
||||
Log::info("RAM: %d MB", SDL_GetSystemRAM());
|
||||
|
||||
SDL_DisplayMode displayMode;
|
||||
const int numDisplays = (std::max)(0, SDL_GetNumVideoDisplays());
|
||||
const int displayIndex = glm::clamp(core::Var::getSafe(cfg::ClientWindowDisplay)->intVal(), 0, numDisplays);
|
||||
|
|
Loading…
Reference in New Issue