mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Reformat all the things. Have fun with merge conflicts.
This commit is contained in:
parent
2115e8a4a6
commit
3570c7f03a
1116 changed files with 187405 additions and 180344 deletions
|
@ -14,33 +14,33 @@ static constexpr u64 FPS_REFRESH_INTERVAL = 1000;
|
|||
|
||||
FPSCounter::FPSCounter()
|
||||
{
|
||||
m_update_time.Update();
|
||||
m_render_time.Update();
|
||||
m_update_time.Update();
|
||||
m_render_time.Update();
|
||||
}
|
||||
|
||||
void FPSCounter::LogRenderTimeToFile(u64 val)
|
||||
{
|
||||
if (!m_bench_file.is_open())
|
||||
m_bench_file.open(File::GetUserPath(D_LOGS_IDX) + "render_time.txt");
|
||||
if (!m_bench_file.is_open())
|
||||
m_bench_file.open(File::GetUserPath(D_LOGS_IDX) + "render_time.txt");
|
||||
|
||||
m_bench_file << val << std::endl;
|
||||
m_bench_file << val << std::endl;
|
||||
}
|
||||
|
||||
void FPSCounter::Update()
|
||||
{
|
||||
if (m_update_time.GetTimeDifference() >= FPS_REFRESH_INTERVAL)
|
||||
{
|
||||
m_update_time.Update();
|
||||
m_fps = m_counter - m_fps_last_counter;
|
||||
m_fps_last_counter = m_counter;
|
||||
m_bench_file.flush();
|
||||
}
|
||||
if (m_update_time.GetTimeDifference() >= FPS_REFRESH_INTERVAL)
|
||||
{
|
||||
m_update_time.Update();
|
||||
m_fps = m_counter - m_fps_last_counter;
|
||||
m_fps_last_counter = m_counter;
|
||||
m_bench_file.flush();
|
||||
}
|
||||
|
||||
if (g_ActiveConfig.bLogRenderTimeToFile)
|
||||
{
|
||||
LogRenderTimeToFile(m_render_time.GetTimeDifference());
|
||||
m_render_time.Update();
|
||||
}
|
||||
if (g_ActiveConfig.bLogRenderTimeToFile)
|
||||
{
|
||||
LogRenderTimeToFile(m_render_time.GetTimeDifference());
|
||||
m_render_time.Update();
|
||||
}
|
||||
|
||||
m_counter++;
|
||||
m_counter++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue