mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Disable exclusive fullscreen for KiriKiri Z games
KiriKiri Z games rely on GDI for top menu bar. If exclusive FS enabled, display or hide menu will result black flicker. So we disable exclusive FS for KiriKiri Z games. Tested on 9-nine- series and Corona Blossom series on Windows 11 and Kali latest with Nvidia GPU.
This commit is contained in:
parent
12c2b2f81b
commit
b2cbc96b43
1 changed files with 14 additions and 1 deletions
|
@ -28,6 +28,19 @@ namespace dxvk {
|
|||
return id;
|
||||
}
|
||||
|
||||
static bool isExclusiveFullscreenAllowed() {
|
||||
// KiriKiri Z games rely on GDI for top menu bar
|
||||
// If exclusive FS enabled, display or hide menu will result black flicker
|
||||
// So we disable exclusive FS for KiriKiri Z games
|
||||
//
|
||||
// We check KAGParserEX.dll which is used in most krkrz games
|
||||
// If it exists, we disable exclusive FS
|
||||
if(GetModuleHandleA("KAGParserEX") != nullptr){
|
||||
Logger::info("KiriKiri Z game detected, disabling exclusive fullscreen");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
D3D9Options::D3D9Options(const Rc<DxvkDevice>& device, const Config& config) {
|
||||
const Rc<DxvkAdapter> adapter = device != nullptr ? device->adapter() : nullptr;
|
||||
|
@ -61,7 +74,7 @@ namespace dxvk {
|
|||
this->invariantPosition = config.getOption<bool> ("d3d9.invariantPosition", true);
|
||||
this->memoryTrackTest = config.getOption<bool> ("d3d9.memoryTrackTest", false);
|
||||
this->supportVCache = config.getOption<bool> ("d3d9.supportVCache", vendorId == uint32_t(DxvkGpuVendor::Nvidia));
|
||||
this->enableDialogMode = config.getOption<bool> ("d3d9.enableDialogMode", false);
|
||||
this->enableDialogMode = config.getOption<bool> ("d3d9.enableDialogMode", !isExclusiveFullscreenAllowed());
|
||||
this->forceSamplerTypeSpecConstants = config.getOption<bool> ("d3d9.forceSamplerTypeSpecConstants", false);
|
||||
this->forceSwapchainMSAA = config.getOption<int32_t> ("d3d9.forceSwapchainMSAA", -1);
|
||||
this->forceSampleRateShading = config.getOption<bool> ("d3d9.forceSampleRateShading", false);
|
||||
|
|
Loading…
Add table
Reference in a new issue