This got a different fix in master... oops!

This commit is contained in:
Sally Coolatta 2022-03-26 23:53:10 -04:00
parent 090fc59d12
commit e5fce1138e
3 changed files with 5 additions and 5 deletions

View file

@ -56,7 +56,7 @@ precise_t I_GetPreciseTime(void);
/** \brief Converts a precise_t to microseconds and casts it to a 32 bit integer.
*/
INT64 I_PreciseToMicros(precise_t d);
int I_PreciseToMicros(precise_t d);
/** \brief The I_Sleep function

View file

@ -535,7 +535,7 @@ void SCR_CalculateFPS(void)
precise_t endTime = 0;
static precise_t updateTime = 0;
INT64 updateElapsed = 0;
int updateElapsed = 0;
int i;
endTime = I_GetPreciseTime();
@ -545,7 +545,7 @@ void SCR_CalculateFPS(void)
if (updateElapsed >= FPS_SAMPLE_RATE)
{
static int sampleIndex = 0;
INT64 frameElapsed = I_PreciseToMicros(endTime - startTime);
int frameElapsed = I_PreciseToMicros(endTime - startTime);
fps_samples[sampleIndex] = frameElapsed / 1000.0f;

View file

@ -1672,7 +1672,7 @@ precise_t I_GetPreciseTime(void)
return SDL_GetPerformanceCounter();
}
INT64 I_PreciseToMicros(precise_t d)
int I_PreciseToMicros(precise_t d)
{
// d is going to be converted into a double. So remove the highest bits
// to avoid loss of precision in the lower bits, for the (probably rare) case
@ -1705,7 +1705,7 @@ boolean I_CheckFrameCap(void)
{
static precise_t start = 0;
precise_t end;
INT64 elapsed;
int elapsed;
UINT32 capFrames = R_GetFramerateCap();
int capMicros = 0;