Add an analytic flag for use of custom annotations API

This commit is contained in:
baldurk
2026-01-28 11:48:58 +00:00
parent 565fe17ba2
commit 2d1c7653f5
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -1095,6 +1095,9 @@ void CaptureContext::LoadCaptureThreaded(const QString &captureFile, const Repla
m_PostloadProgress = 1.0f;
});
if(m_FrameInfo.containsAnnotations)
ANALYTIC_SET(CaptureFeatures.CustomAnnotations, true);
QThread::msleep(20);
QDateTime today = QDateTime::currentDateTimeUtc();
+3 -1
View File
@@ -314,6 +314,7 @@ static struct AnalyticsDocumentation
DOCUMENT_ANALYTIC(MultiGPU, "Did any capture make use of multiple GPUs?");
DOCUMENT_ANALYTIC(D3D12Bundle, "Did any D3D12 capture use bundles?");
DOCUMENT_ANALYTIC(DXILShaders, "Did any D3D12 capture use DXIL shaders?");
DOCUMENT_ANALYTIC(CustomAnnotations, "Did any capture use RenderDoc's custom annotations?");
} DOCUMENT_ANALYTIC_SECTION(CaptureFeatures, "Capture API Usage");
} docs;
@@ -323,7 +324,7 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
// only check this on 64-bit as it is different on 32-bit
#if QT_POINTER_SIZE == 8 && defined(Q_OS_WIN32)
static_assert(sizeof(Analytics) == 148, "Sizeof Analytics has changed - update serialisation.");
static_assert(sizeof(Analytics) == 149, "Sizeof Analytics has changed - update serialisation.");
#endif
QString doc;
@@ -432,6 +433,7 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
ANALYTIC_SERIALISE(CaptureFeatures.MultiGPU);
ANALYTIC_SERIALISE(CaptureFeatures.D3D12Bundle);
ANALYTIC_SERIALISE(CaptureFeatures.DXILShaders);
ANALYTIC_SERIALISE(CaptureFeatures.CustomAnnotations);
}
if(type == AnalyticsSerialiseType::Documenting)
+1
View File
@@ -242,6 +242,7 @@ struct Analytics
bool MultiGPU = false;
bool D3D12Bundle = false;
bool DXILShaders = false;
bool CustomAnnotations = false;
} CaptureFeatures;
};