@@ -153,7 +153,10 @@ namespace FPSLimiter
153153 minFPS = FPS_LIMIT_UNLIMITED;
154154
155155 m_data.activeFPSTarget = minFPS;
156- OutputDebugLine (std::string (" FPSLimiter: Calculated active FPS limit: %d" , m_data.activeFPSTarget ));
156+
157+ std::stringstream ss;
158+ ss << " FPSLimiter: Calculated active FPS limit: " << m_data.activeFPSTarget ;
159+ OutputDebugLine (ss.str ().c_str ());
157160
158161 // If limit changed, reset frame timing
159162 if (oldLimit != m_data.activeFPSTarget )
@@ -165,20 +168,19 @@ namespace FPSLimiter
165168 OnFPSLimitChange ();
166169 }
167170
168- std::stringstream ss ;
171+ ss. clear () ;
169172 ss << " FPSLimiter: Calculated current FPS limit : " << m_data.activeFPSTarget
170173 << " (Server: " << m_data.serverEnforcedFPS
171174 << " , Client: " << m_data.clientEnforcedFPS
172175 << " , User: " << m_data.userDefinedFPS
173176 << " , Display: " << m_data.displayRefreshRate
174177 << " ) Enforcer: " << EnumToString (GetEnforcer ());
175- std::string msg = ss.str ();
176178
177179 auto * pConsole = CCore::GetSingleton ().GetConsole ();
178180 if (pConsole)
179- CCore::GetSingleton ().GetConsole ()->Print (msg );
181+ CCore::GetSingleton ().GetConsole ()->Print (ss. str (). c_str () );
180182
181- OutputDebugLine (msg );
183+ OutputDebugLine (ss. str (). c_str () );
182184 }
183185
184186 void FPSLimiter::SetFrameRateThrottle ()
@@ -260,7 +262,7 @@ namespace FPSLimiter
260262 HMODULE ntdll = GetModuleHandleA (" ntdll.dll" );
261263 if (ntdll)
262264 {
263- NtSetTimerResolution setRes = static_cast <NtSetTimerResolution>(GetProcAddress (ntdll, " NtSetTimerResolution" ));
265+ NtSetTimerResolution setRes = reinterpret_cast <NtSetTimerResolution>(GetProcAddress (ntdll, " NtSetTimerResolution" ));
264266 if (setRes)
265267 {
266268 ULONG actualRes;
0 commit comments