MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GSgetTitleStats

Function GSgetTitleStats

pcsx2/GS/GS.cpp:785–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785void GSgetTitleStats(std::string& info)
786{
787 static constexpr const char* deinterlace_modes[] = {
788 "Automatic", "None", "Weave tff", "Weave bff", "Bob tff", "Bob bff", "Blend tff", "Blend bff", "Adaptive tff", "Adaptive bff"};
789
790 const char* api_name = GSDevice::RenderAPIToString(g_gs_device->GetRenderAPI());
791 const char* hw_sw_name = (GSCurrentRenderer == GSRendererType::Null) ? " Null" : (GSIsHardwareRenderer() ? " HW" : " SW");
792 const char* deinterlace_mode = deinterlace_modes[static_cast<int>(GSConfig.InterlaceMode)];
793
794 const char* interlace_mode = ReportInterlaceMode();
795 const char* video_mode = ReportVideoMode();
796 info = StringUtil::StdStringFromFormat("%s%s | %s | %s | %s", api_name, hw_sw_name, video_mode, interlace_mode, deinterlace_mode);
797}
798
799void GSUpdateConfig(const Pcsx2Config::GSOptions& new_config)
800{

Callers 1

Calls 5

GSIsHardwareRendererFunction · 0.85
ReportInterlaceModeFunction · 0.85
ReportVideoModeFunction · 0.85
StdStringFromFormatFunction · 0.85
GetRenderAPIMethod · 0.45

Tested by

no test coverage detected