Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
8040c8fe
Commit
8040c8fe
authored
2 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
Tweaks for kart v1 MR comments
parent
79f736b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1783
Uncapped
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/i_time.c
+7
-1
7 additions, 1 deletion
src/i_time.c
with
7 additions
and
1 deletion
src/i_time.c
+
7
−
1
View file @
8040c8fe
...
...
@@ -30,6 +30,12 @@ static precise_t enterprecise, oldenterprecise;
static
fixed_t
entertic
,
oldentertics
;
static
double
tictimer
;
// A little more than the minimum sleep duration on Windows.
// May be incorrect for other platforms, but we don't currently have a way to
// query the scheduler granularity. SDL will do what's needed to make this as
// low as possible though.
#define MIN_SLEEP_DURATION_MS 2.1
tic_t
I_GetTime
(
void
)
{
return
g_time
.
time
;
...
...
@@ -90,7 +96,7 @@ void I_SleepDuration(precise_t duration)
precise_t
dest
;
{
double
gran
=
round
(((
double
)(
precision
/
1000
)
*
sleepvalue
*
2
.
1
));
double
gran
=
round
(((
double
)(
precision
/
1000
)
*
sleepvalue
*
MIN_SLEEP_DURATION_MS
));
delaygranularity
=
(
UINT64
)
gran
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment