mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed: screen->FrameTime should use an adjusted frame start time
This commit is contained in:
parent
29d2d8b3f8
commit
a29d9e157c
3 changed files with 9 additions and 1 deletions
|
@ -781,7 +781,7 @@ void D_Display ()
|
|||
|
||||
|
||||
{
|
||||
screen->FrameTime = I_msTime();
|
||||
screen->FrameTime = I_msTimeFS();
|
||||
TexMan.UpdateAnimations(screen->FrameTime);
|
||||
R_UpdateSky(screen->FrameTime);
|
||||
switch (gamestate)
|
||||
|
|
|
@ -164,6 +164,11 @@ uint64_t I_msTime()
|
|||
return NSToMS(I_nsTime());
|
||||
}
|
||||
|
||||
uint64_t I_msTimeFS() // from "start"
|
||||
{
|
||||
return NSToMS(I_nsTime() - FirstFrameStartTime);
|
||||
}
|
||||
|
||||
int I_GetTime()
|
||||
{
|
||||
return NSToTic(CurrentFrameStartTime - FirstFrameStartTime);
|
||||
|
|
|
@ -22,5 +22,8 @@ void I_FreezeTime(bool frozen);
|
|||
// [RH] Returns millisecond-accurate time
|
||||
uint64_t I_msTime();
|
||||
|
||||
// [SP] Returns millisecond-accurate time from start
|
||||
uint64_t I_msTimeFS();
|
||||
|
||||
// Nanosecond-accurate time
|
||||
uint64_t I_nsTime();
|
||||
|
|
Loading…
Reference in a new issue