mirror of
https://github.com/wolfpld/tracy
synced 2025-01-15 11:57:59 +00:00
Compare commits
2 Commits
5834a4be44
...
c41a5b0df0
Author | SHA1 | Date | |
---|---|---|---|
|
c41a5b0df0 | ||
|
8f8a28db60 |
@ -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}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user