1
0
mirror of https://github.com/wolfpld/tracy synced 2025-01-15 11:57:59 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Bartosz Taudul
c41a5b0df0
Update manual. 2021-06-17 01:03:25 +02:00
Bartosz Taudul
8f8a28db60
Allow manual setting of DPI scale. 2021-06-17 00:52:50 +02:00
2 changed files with 11 additions and 0 deletions

View File

@ -739,6 +739,10 @@ The following defines may be of interest:
\item \texttt{TRACY\_NO\_ROOT\_WINDOW} -- the main profiler view won't occupy whole window if this macro is defined. Additional setup is required for this to work. If you are embedding the server into your application you probably want to enable this option.
\end{itemize}
\subsubsection{DPI scaling}
The graphic server application will adapt to the system DPI scaling. If for some reason this doesn't work in your case, you may try setting the \texttt{TRACY\_DPI\_SCALE} environment variable to a scale fraction, where a value of 1 indicates no scaling.
\subsection{Naming threads}
\label{namingthreads}

View File

@ -297,6 +297,13 @@ int main( int argc, char** argv )
# endif
#endif
const auto envDpiScale = getenv( "TRACY_DPI_SCALE" );
if( envDpiScale )
{
const auto cnv = atof( envDpiScale );
if( cnv != 0 ) dpiScale = cnv;
}
// Setup ImGui binding
IMGUI_CHECKVERSION();
ImGui::CreateContext();