mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[dxvk] Add option to toggle asynchronous presentation
This commit is contained in:
parent
ed5c43a14d
commit
77db8158c8
13
dxvk.conf
13
dxvk.conf
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user