-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It used to be set with just com_frameTime = com_ticNumber * USERCMD_MSEC; where com_ticNumber is incremented in each idCommonLocal::SingleAsyncTic(). That worked well enough when USERCMD_MSEC was a fixed constant, but now changing com_gameHz could cause com_frameTime to decrease, which leads to all kinds of funny glitches like fading into the main menu when switching mods taking way too long, resulting in a black screen (when the mod has higher com_gameHz => lower USERCMD_MSEC). So now this is done in a function with slightly more logic that adds to com_frameTime instead of recalculating it with a multiplication. I also changed how SingleAsyncTic() (or idCommonLocal::Async()) is called, by using a proper thread instead of an SDL_Timer. This gives me more control over it so it can be more precise (and, as far as I can tell, it is)
- Loading branch information
1 parent
295ef9b
commit 74f40bd
Showing
3 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters