MCPcopy Create free account
hub / github.com/crosire/reshade / get_timestamp_frequency

Method get_timestamp_frequency

source/d3d9/d3d9_impl_command_queue.cpp:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29uint64_t reshade::d3d9::device_impl::get_timestamp_frequency() const
30{
31 com_ptr<IDirect3DQuery9> temp_query;
32 if (SUCCEEDED(_orig->CreateQuery(D3DQUERYTYPE_TIMESTAMPFREQ, &temp_query)))
33 {
34 temp_query->Issue(D3DISSUE_END);
35
36 UINT64 frequency = 0;
37 while (temp_query->GetData(&frequency, sizeof(frequency), D3DGETDATA_FLUSH) == S_FALSE)
38 Sleep(1);
39
40 return frequency;
41 }
42
43 return 0;
44}

Callers 1

runtimeMethod · 0.45

Calls 2

GetDataMethod · 0.80
CreateQueryMethod · 0.45

Tested by

no test coverage detected