mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #5501 from FearlessTobi/port-1064-3948
Port yuzu-emu/yuzu#1064 and yuzu-emu/yuzu#3948: Changes to Telemetry and CPU feature detection
This commit is contained in:
		
						commit
						9ff97270cf
					
				
					 17 changed files with 137 additions and 89 deletions
				
			
		|  | @ -52,7 +52,8 @@ void CompatDB::Submit() { | |||
|         back(); | ||||
|         LOG_DEBUG(Frontend, "Compatibility Rating: {}", compatibility->checkedId()); | ||||
|         Core::System::GetInstance().TelemetrySession().AddField( | ||||
|             Telemetry::FieldType::UserFeedback, "Compatibility", compatibility->checkedId()); | ||||
|             Common::Telemetry::FieldType::UserFeedback, "Compatibility", | ||||
|             compatibility->checkedId()); | ||||
| 
 | ||||
|         button(NextButton)->setEnabled(false); | ||||
|         button(NextButton)->setText(tr("Submitting")); | ||||
|  |  | |||
|  | @ -190,7 +190,20 @@ GMainWindow::GMainWindow() | |||
|     LOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch, | ||||
|              Common::g_scm_desc); | ||||
| #ifdef ARCHITECTURE_x86_64 | ||||
|     LOG_INFO(Frontend, "Host CPU: {}", Common::GetCPUCaps().cpu_string); | ||||
|     const auto& caps = Common::GetCPUCaps(); | ||||
|     std::string cpu_string = caps.cpu_string; | ||||
|     if (caps.avx || caps.avx2 || caps.avx512) { | ||||
|         cpu_string += " | AVX"; | ||||
|         if (caps.avx512) { | ||||
|             cpu_string += "512"; | ||||
|         } else if (caps.avx2) { | ||||
|             cpu_string += '2'; | ||||
|         } | ||||
|         if (caps.fma || caps.fma4) { | ||||
|             cpu_string += " | FMA"; | ||||
|         } | ||||
|     } | ||||
|     LOG_INFO(Frontend, "Host CPU: {}", cpu_string); | ||||
| #endif | ||||
|     LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString()); | ||||
|     UpdateWindowTitle(); | ||||
|  | @ -989,7 +1002,7 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
| 
 | ||||
|     game_path = filename; | ||||
| 
 | ||||
|     system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); | ||||
|     system.TelemetrySession().AddField(Common::Telemetry::FieldType::App, "Frontend", "Qt"); | ||||
|     return true; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue