Add correct core count detection for i7(and maybe i5/i3?) CPUs, and update the SysInfo screen to show more information about threads on x86/x64.

This commit is contained in:
The Dax committed 2013-10-17 19:03:33 -04:00
1 parent aa3cf34fc1
commit 0400a61d51
2 files changed
+13 -2

No files matched your search

+3 -1
View File
@@ -152,7 +152,9 @@ void SystemInfoScreen::CreateViews() {
#ifdef ARM
deviceSpecs->Add(new InfoItem("Cores", StringFromInt(cpu_info.num_cores)));
#else
deviceSpecs->Add(new InfoItem("Threads", StringFromInt(cpu_info.num_cores)));
int totalThreads = cpu_info.num_cores * cpu_info.logical_cpu_count;
std::string cores = StringFromFormat("%d (%d per core, %d cores)", totalThreads, cpu_info.logical_cpu_count, cpu_info.num_cores);
deviceSpecs->Add(new InfoItem("Threads", cores));
#endif
deviceSpecs->Add(new ItemHeader("GPU Information"));
deviceSpecs->Add(new InfoItem("Vendor", (char *)glGetString(GL_VENDOR)));