diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index cd820844..76eb6f73 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -362,6 +362,7 @@ struct FrameImage const char* ptr; uint32_t csz; uint16_t w, h; + uint32_t frameRef; }; } diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 3d1ad10d..fa8fc100 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1262,6 +1262,17 @@ Worker::Worker( FileRead& f, EventType::Type eventMask ) m_data.frameImage[i] = fi; } delete[] tmpbuf; + + const auto& frames = GetFramesBase()->frames; + const auto fsz = uint32_t( frames.size() ); + for( uint32_t i=0; iframeRef = i; + } + } } else { @@ -3008,6 +3019,7 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev ) fi->ptr = PackFrameImage( (const char*)it->second, ev.w, ev.h, fi->csz ); fi->w = ev.w; fi->h = ev.h; + fi->frameRef = fidx; const auto idx = m_data.frameImage.size(); m_data.frameImage.push_back( fi );