Use separate encoding and capture devices to enable parallel encoding and capture (#668)
This commit is contained in:
parent
76ffa2a0b5
commit
0439d7a83a
4 changed files with 294 additions and 105 deletions
|
|
@ -186,7 +186,7 @@ int display_base_t::init(int framerate, const std::string &display_name) {
|
|||
adapter_p,
|
||||
D3D_DRIVER_TYPE_UNKNOWN,
|
||||
nullptr,
|
||||
D3D11_CREATE_DEVICE_VIDEO_SUPPORT,
|
||||
D3D11_CREATE_DEVICE_FLAGS,
|
||||
featureLevels, sizeof(featureLevels) / sizeof(D3D_FEATURE_LEVEL),
|
||||
D3D11_SDK_VERSION,
|
||||
&device,
|
||||
|
|
@ -272,7 +272,10 @@ int display_base_t::init(int framerate, const std::string &display_name) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
dxgi->SetGPUThreadPriority(7);
|
||||
status = dxgi->SetGPUThreadPriority(7);
|
||||
if(FAILED(status)) {
|
||||
BOOST_LOG(warning) << "Failed to increase capture GPU thread priority. Please run application as administrator for optimal performance.";
|
||||
}
|
||||
}
|
||||
|
||||
// Try to reduce latency
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue