mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
GPU context time drift storage.
This commit is contained in:
parent
0b9559c05b
commit
bab798c13c
@ -131,6 +131,7 @@ private:
|
|||||||
|
|
||||||
flat_hash_map<const void*, bool, nohash<const void*>> m_visible;
|
flat_hash_map<const void*, bool, nohash<const void*>> m_visible;
|
||||||
flat_hash_map<const void*, bool, nohash<const void*>> m_showFull;
|
flat_hash_map<const void*, bool, nohash<const void*>> m_showFull;
|
||||||
|
flat_hash_map<const void*, int, nohash<const void*>> m_gpuDrift;
|
||||||
|
|
||||||
tracy_force_inline bool& Visible( const void* ptr )
|
tracy_force_inline bool& Visible( const void* ptr )
|
||||||
{
|
{
|
||||||
@ -152,6 +153,16 @@ private:
|
|||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracy_force_inline int& GpuDrift( const void* ptr )
|
||||||
|
{
|
||||||
|
auto it = m_gpuDrift.find( ptr );
|
||||||
|
if( it == m_gpuDrift.end() )
|
||||||
|
{
|
||||||
|
it = m_gpuDrift.emplace( ptr, 0 ).first;
|
||||||
|
}
|
||||||
|
return it->second;
|
||||||
|
}
|
||||||
|
|
||||||
Worker m_worker;
|
Worker m_worker;
|
||||||
bool m_staticView;
|
bool m_staticView;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user