diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 4a0df999..135b867a 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -439,7 +439,9 @@ bool SysTraceStart( int64_t& samplingPeriod ) return false; } +#ifndef TRACY_NO_VSYNC_CAPTURE SetupVsync(); +#endif return true; } diff --git a/manual/tracy.tex b/manual/tracy.tex index ca07eaf5..c804ac3a 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -1809,6 +1809,8 @@ For proper program code retrieval no module used by the application can be unloa On Windows Tracy will automatically capture hardware Vsync events, if running with elevated privileges (see section~\ref{contextswitches}). These events will be reported as '\texttt{[x] Vsync}' frame sets, where \texttt{x} is the identifier of a specific monitor. Note that hardware vertical synchronization might not correspond to the one seen by your application, due to desktop composition, command queue buffering, etc. +Use the \texttt{TRACY\_NO\_VSYNC\_CAPTURE} macro to disable capture of Vsync events. + \subsection{Trace parameters} \label{traceparameters}