Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIAGameWorks/Falcor
/ timeFromFrame
Function
timeFromFrame
Source/Falcor/Utils/Timing/Clock.cpp:86–89 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
84
// intra-frame steps
85
86
double timeFromFrame(uint64_t frame, uint64_t ticksPerFrame)
87
{
88
return double(frame * ticksPerFrame) / (double)kTicksPerSecond;
89
}
90
91
uint64_t frameFromTime(double seconds, uint64_t ticksPerFrame)
92
{
Callers
1
Clock.cpp
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected