Update physac.h
This commit is contained in:
parent
19b71f5f13
commit
b733e76c86
1 changed files with 3 additions and 3 deletions
|
@ -318,7 +318,7 @@ static unsigned int usedMemory = 0; // Total allocated d
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
||||||
// Timming measure functions
|
// Timming measure functions
|
||||||
static void InitTimer(void); // Initializes hi-resolution MONOTONIC timer
|
static void InitTimerHiRes(void); // Initializes hi-resolution MONOTONIC timer
|
||||||
static unsigned long long int GetClockTicks(void); // Get hi-res MONOTONIC time measure in mseconds
|
static unsigned long long int GetClockTicks(void); // Get hi-res MONOTONIC time measure in mseconds
|
||||||
static double GetCurrentTime(void); // Get current time measure in milliseconds
|
static double GetCurrentTime(void); // Get current time measure in milliseconds
|
||||||
#endif
|
#endif
|
||||||
|
@ -370,7 +370,7 @@ PHYSACDEF void InitPhysics(void)
|
||||||
{
|
{
|
||||||
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
||||||
// Initialize high resolution timer
|
// Initialize high resolution timer
|
||||||
InitTimer();
|
InitTimerHiRes();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TRACELOG("[PHYSAC] Physics module initialized successfully\n");
|
TRACELOG("[PHYSAC] Physics module initialized successfully\n");
|
||||||
|
@ -1848,7 +1848,7 @@ static Vector2 MathTriangleBarycenter(Vector2 v1, Vector2 v2, Vector2 v3)
|
||||||
|
|
||||||
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
#if !defined(PHYSAC_AVOID_TIMMING_SYSTEM)
|
||||||
// Initializes hi-resolution MONOTONIC timer
|
// Initializes hi-resolution MONOTONIC timer
|
||||||
static void InitTimer(void)
|
static void InitTimerHiRes(void)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
QueryPerformanceFrequency((unsigned long long int *) &frequency);
|
QueryPerformanceFrequency((unsigned long long int *) &frequency);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue