GPU context time drift storage.

This commit is contained in:
Bartosz Taudul 2018-06-28 01:08:08 +02:00
parent 0b9559c05b
commit bab798c13c

View File

@ -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_showFull;
flat_hash_map<const void*, int, nohash<const void*>> m_gpuDrift;
tracy_force_inline bool& Visible( const void* ptr )
{
@ -152,6 +153,16 @@ private:
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;
bool m_staticView;