Two minor fixes.

This commit is contained in:
Martijn Courteaux 2024-06-07 11:36:47 +02:00
parent a17c218351
commit 5d52427f4a
2 changed files with 3 additions and 2 deletions

View File

@ -107,6 +107,7 @@ set(client_includes
${TRACY_PUBLIC_DIR}/client/tracy_concurrentqueue.h ${TRACY_PUBLIC_DIR}/client/tracy_concurrentqueue.h
${TRACY_PUBLIC_DIR}/client/tracy_rpmalloc.hpp ${TRACY_PUBLIC_DIR}/client/tracy_rpmalloc.hpp
${TRACY_PUBLIC_DIR}/client/tracy_SPSCQueue.h ${TRACY_PUBLIC_DIR}/client/tracy_SPSCQueue.h
${TRACY_PUBLIC_DIR}/client/TracyKCore.hpp
${TRACY_PUBLIC_DIR}/client/TracyArmCpuTable.hpp ${TRACY_PUBLIC_DIR}/client/TracyArmCpuTable.hpp
${TRACY_PUBLIC_DIR}/client/TracyCallstack.h ${TRACY_PUBLIC_DIR}/client/TracyCallstack.h
${TRACY_PUBLIC_DIR}/client/TracyCallstack.hpp ${TRACY_PUBLIC_DIR}/client/TracyCallstack.hpp

View File

@ -417,11 +417,11 @@ private:
}; };
uint64_t ts[2]; uint64_t ts[2];
uint64_t deviation[NumProbes]; uint64_t deviation[NumProbes];
for( int i=0; i<NumProbes; i++ ) { for( size_t i=0; i<NumProbes; i++ ) {
m_vkGetCalibratedTimestampsEXT( m_device, 2, spec, ts, deviation + i ); m_vkGetCalibratedTimestampsEXT( m_device, 2, spec, ts, deviation + i );
} }
uint64_t minDeviation = deviation[0]; uint64_t minDeviation = deviation[0];
for( int i=1; i<NumProbes; i++ ) { for( size_t i=1; i<NumProbes; i++ ) {
if ( minDeviation > deviation[i] ) { if ( minDeviation > deviation[i] ) {
minDeviation = deviation[i]; minDeviation = deviation[i];
} }