mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 20:01:12 +00:00
Serialise timestamps and durations as tick counts, and convert on replay
* When we're capturing programs with high-frequency enough API calls, the overhead of the math & extra function calls over Timing::GetTick() is measurable. Removing it and serialising pure tick based durations/timestamps and then converting on replay gives us identical results and saves time while background capturing.
This commit is contained in:
@@ -352,8 +352,14 @@ void RenderDoc::Initialise()
|
||||
m_RemoteIdent = 0;
|
||||
m_RemoteThread = 0;
|
||||
|
||||
m_TimeBase = 0;
|
||||
m_TimeFrequency = 1.0;
|
||||
|
||||
if(!IsReplayApp())
|
||||
{
|
||||
m_TimeBase = Timing::GetTick();
|
||||
m_TimeFrequency = Timing::GetTickFrequency() / 1000.0;
|
||||
|
||||
Process::ApplyEnvironmentModification();
|
||||
|
||||
uint32_t port = RenderDoc_FirstTargetControlPort;
|
||||
|
||||
Reference in New Issue
Block a user