mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Qt: Advanced config pane
This commit is contained in:
parent
7cb8d6612c
commit
4ea8166b93
6 changed files with 182 additions and 2 deletions
|
@ -110,7 +110,8 @@ void AdvancedConfigPane::InitializeGUI()
|
|||
|
||||
void AdvancedConfigPane::LoadGUIValues()
|
||||
{
|
||||
int ocFactor = (int)(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f + 0.5f);
|
||||
int ocFactor =
|
||||
static_cast<int>(std::ceil(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f));
|
||||
bool oc_enabled = SConfig::GetInstance().m_OCEnable;
|
||||
m_clock_override_checkbox->SetValue(oc_enabled);
|
||||
m_clock_override_slider->SetValue(ocFactor);
|
||||
|
@ -199,7 +200,7 @@ void AdvancedConfigPane::OnCustomRTCTimeChanged(wxDateEvent& event)
|
|||
|
||||
void AdvancedConfigPane::UpdateCPUClock()
|
||||
{
|
||||
int core_clock = SystemTimers::GetTicksPerSecond() / pow(10, 6);
|
||||
int core_clock = SystemTimers::GetTicksPerSecond() / std::pow(10, 6);
|
||||
int percent = static_cast<int>(std::round(SConfig::GetInstance().m_OCFactor * 100.f));
|
||||
int clock = static_cast<int>(std::round(SConfig::GetInstance().m_OCFactor * core_clock));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue