Allow disabling vsync capture.

This commit is contained in:
Bartosz Taudul 2020-11-05 23:44:28 +01:00
parent a48d540854
commit a34abe646c
2 changed files with 4 additions and 0 deletions

View File

@ -439,7 +439,9 @@ bool SysTraceStart( int64_t& samplingPeriod )
return false; return false;
} }
#ifndef TRACY_NO_VSYNC_CAPTURE
SetupVsync(); SetupVsync();
#endif
return true; return true;
} }

View File

@ -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. 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} \subsection{Trace parameters}
\label{traceparameters} \label{traceparameters}