From 94407dbd1f53897c362b9f4dd5eb0db7f0f98ef8 Mon Sep 17 00:00:00 2001 From: Marcos Slomp Date: Thu, 8 Feb 2024 09:45:53 -0800 Subject: [PATCH] giving up on calibration, for now --- public/tracy/TracyMetal.hmm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/tracy/TracyMetal.hmm b/public/tracy/TracyMetal.hmm index 871dce18..9c89f841 100644 --- a/public/tracy/TracyMetal.hmm +++ b/public/tracy/TracyMetal.hmm @@ -120,7 +120,7 @@ public: fprintf(stdout, "TracyMetal: Calibration: GPU timestamp: %llu\n", gpuTimestamp); cpuTimestamp = Profiler::GetTime(); fprintf(stdout, "TracyMetal: Calibration: CPU timestamp (profiler): %llu\n", cpuTimestamp); - float period = 1.08f; + float period = 1.0f; m_contextId = GetGpuCtxCounter().fetch_add(1); @@ -131,7 +131,8 @@ public: MemWrite(&item->gpuNewContext.thread, uint32_t(0)); // #TODO: why not GetThreadHandle()? MemWrite(&item->gpuNewContext.period, period); MemWrite(&item->gpuNewContext.context, m_contextId); - MemWrite(&item->gpuNewContext.flags, GpuContextCalibration); + //MemWrite(&item->gpuNewContext.flags, GpuContextCalibration); + MemWrite(&item->gpuNewContext.flags, GpuContextFlags(0)); MemWrite(&item->gpuNewContext.type, GpuContextType::Metal); Profiler::QueueSerialFinish(); // TODO: DeferItem() for TRACY_ON_DEMAND }