[dxvk] Add option to toggle asynchronous presentation

This commit is contained in:
Philip Rebohle 2019-07-05 21:09:46 +02:00
parent ed5c43a14d
commit 77db8158c8
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 18 additions and 0 deletions

View File

@ -63,6 +63,19 @@
# dxgi.syncInterval = -1
# Toggles asynchronous present.
#
# Off-loads presentation to the queue submission thread in
# order to reduce stalling on the main rendering thread and
# improve performance.
#
# Supported values:
# - Auto: Enable on certain drivers
# - True / False: Always enable / disable
# dxgi.asyncPresent = Auto
# Enables or dsables d3d10 support.
#
# Supported values: True, False

View File

@ -17,6 +17,7 @@ namespace dxvk {
this->numBackBuffers = config.getOption<int32_t>("dxgi.numBackBuffers", 0);
this->maxFrameLatency = config.getOption<int32_t>("dxgi.maxFrameLatency", 0);
this->syncInterval = config.getOption<int32_t>("dxgi.syncInterval", -1);
this->asyncPresent = config.getOption<Tristate>("dxgi.asyncPresent", Tristate::Auto);
}
}

View File

@ -76,6 +76,10 @@ namespace dxvk {
/// fixes issues with games that create multiple swap chains
/// for a single window that may interfere with each other.
bool deferSurfaceCreation;
/// Whether to use the submission thread for presentation.
/// May increase performance in some games with some drivers.
Tristate asyncPresent;
};
}