Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
d9vk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Joshua Ashton
d9vk
Commits
48eefb92
Commit
48eefb92
authored
Nov 26, 2019
by
Joshua Ashton
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[d3d9] Hook up platform-specific clock
See 89dfa2b Closes #459 and #455
parent
cdd77a22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/d3d9/d3d9_device.cpp
src/d3d9/d3d9_device.cpp
+2
-2
src/d3d9/d3d9_device.h
src/d3d9/d3d9_device.h
+2
-2
src/d3d9/d3d9_swapchain.cpp
src/d3d9/d3d9_swapchain.cpp
+1
-1
No files found.
src/d3d9/d3d9_device.cpp
View file @
48eefb92
...
...
@@ -4522,7 +4522,7 @@ namespace dxvk {
uint32_t
pending
=
m_dxvkDevice
->
pendingSubmissions
();
if
(
StrongHint
||
pending
<=
MaxPendingSubmits
)
{
auto
now
=
std
::
chrono
::
high_resolution_clock
::
now
();
auto
now
=
dxvk
::
high_resolution_clock
::
now
();
uint32_t
delay
=
MinFlushIntervalUs
+
IncFlushIntervalUs
*
pending
;
...
...
@@ -4828,7 +4828,7 @@ namespace dxvk {
FlushCsChunk
();
// Reset flush timer used for implicit flushes
m_lastFlush
=
std
::
chrono
::
high_resolution_clock
::
now
();
m_lastFlush
=
dxvk
::
high_resolution_clock
::
now
();
m_csIsBusy
=
false
;
}
}
...
...
src/d3d9/d3d9_device.h
View file @
48eefb92
...
...
@@ -863,8 +863,8 @@ namespace dxvk {
Rc
<
DxvkDataBuffer
>
m_updateBuffer
;
DxvkCsChunkPool
m_csChunkPool
;
std
::
chrono
::
high_resolution_clock
::
time_point
m_lastFlush
=
std
::
chrono
::
high_resolution_clock
::
now
();
dxvk
::
high_resolution_clock
::
time_point
m_lastFlush
=
dxvk
::
high_resolution_clock
::
now
();
DxvkCsThread
m_csThread
;
bool
m_csIsBusy
=
false
;
...
...
src/d3d9/d3d9_swapchain.cpp
View file @
48eefb92
...
...
@@ -181,7 +181,7 @@ namespace dxvk {
uint32_t
scanLineCount
=
mode
.
Height
+
vBlankLineCount
;
auto
nowUs
=
std
::
chrono
::
time_point_cast
<
std
::
chrono
::
microseconds
>
(
std
::
chrono
::
high_resolution_clock
::
now
())
dxvk
::
high_resolution_clock
::
now
())
.
time_since_epoch
();
auto
frametimeUs
=
std
::
chrono
::
microseconds
(
1000000u
/
mode
.
RefreshRate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment