1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add persistent target FPS option.

This commit is contained in:
Bartosz Taudul
2023-05-01 19:07:49 +02:00
parent 3150a48561
commit bd2f903c08
3 changed files with 18 additions and 2 deletions
+4
View File
@@ -66,6 +66,8 @@ View::View( void(*cbMainThread)(const std::function<void()>&, bool), const char*
{
InitMemory();
InitTextEditor();
m_vd.frameTarget = config.targetFps;
}
View::View( void(*cbMainThread)(const std::function<void()>&, bool), FileRead& f, ImFont* fixedWidth, ImFont* smallFont, ImFont* bigFont, SetTitleCallback stcb, SetScaleCallback sscb, AttentionCallback acb, const Config& config )
@@ -99,6 +101,8 @@ View::View( void(*cbMainThread)(const std::function<void()>&, bool), FileRead& f
if( m_worker.GetCallstackFrameCount() == 0 ) m_showUnknownFrames = false;
if( m_worker.GetCallstackSampleCount() == 0 ) m_showAllSymbols = true;
m_vd.frameTarget = config.targetFps;
}
View::~View()