mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
Fix member vars left uninitialized in constructors
This commit is contained in:
parent
3fe0fe1b92
commit
0ffd7f5620
23 changed files with 68 additions and 19 deletions
|
|
@ -43,13 +43,17 @@ public:
|
|||
Win32Timer()
|
||||
{
|
||||
mPerfCountRemainderCurrent = 0.0f;
|
||||
mPerfCountRemainderNext = 0.0f;
|
||||
|
||||
// Attempt to use QPC for high res timing, otherwise fallback to GTC.
|
||||
mUsingPerfCounter = QueryPerformanceFrequency((LARGE_INTEGER *) &mFrequency);
|
||||
if(mUsingPerfCounter)
|
||||
mUsingPerfCounter = QueryPerformanceCounter((LARGE_INTEGER *) &mPerfCountCurrent);
|
||||
if(!mUsingPerfCounter)
|
||||
{
|
||||
mTickCountCurrent = GetTickCount();
|
||||
mTickCountNext = 0;
|
||||
}
|
||||
}
|
||||
|
||||
const S32 getElapsedMs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue