mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Merge pull request #1214 from bpay/cppcheck-cleaning
Fix some issues flagged by cppcheck
This commit is contained in:
commit
497a15cfd0
38 changed files with 96 additions and 42 deletions
|
|
@ -53,6 +53,7 @@ public:
|
|||
mRunArg = 0;
|
||||
mThread = 0;
|
||||
mThreadHnd = 0;
|
||||
mThreadID = 0;
|
||||
mDead = false;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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