Minor cleanups
This commit is contained in:
parent
81f0c3a8e4
commit
e7b3afbc7a
3 changed files with 3 additions and 6 deletions
|
@ -472,13 +472,9 @@ void SystemInfoScreen::CreateViews() {
|
|||
|
||||
deviceSpecs->Add(new ItemHeader(si->T("CPU Information")));
|
||||
deviceSpecs->Add(new InfoItem(si->T("CPU Name", "Name"), cpu_info.brand_string));
|
||||
#if PPSSPP_ARCH(ARM) || PPSSPP_ARCH(ARM64) || PPSSPP_ARCH(MIPS) || PPSSPP_ARCH(MIPS64)
|
||||
deviceSpecs->Add(new InfoItem(si->T("Cores"), StringFromInt(cpu_info.num_cores)));
|
||||
#else
|
||||
int totalThreads = cpu_info.num_cores * cpu_info.logical_cpu_count;
|
||||
std::string cores = StringFromFormat(si->T("%d (%d per core, %d cores)"), totalThreads, cpu_info.logical_cpu_count, cpu_info.num_cores);
|
||||
deviceSpecs->Add(new InfoItem(si->T("Threads"), cores));
|
||||
#endif
|
||||
#if PPSSPP_PLATFORM(IOS)
|
||||
deviceSpecs->Add(new InfoItem(si->T("JIT available"), System_GetPropertyBool(SYSPROP_CAN_JIT) ? di->T("Yes") : di->T("No")));
|
||||
#endif
|
||||
|
|
|
@ -62,7 +62,7 @@ bool TestThreadManager() {
|
|||
}
|
||||
|
||||
ThreadManager manager;
|
||||
manager.Init(8, 8);
|
||||
manager.Init(8, 1);
|
||||
|
||||
Promise<ResultObject> *object(Promise<ResultObject>::Spawn(&manager, &ResultProducer, TaskType::IO_BLOCKING));
|
||||
|
||||
|
|
|
@ -77,8 +77,9 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
|||
switch (prop) {
|
||||
case SYSPROP_CAN_JIT:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue