mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan: Add ugly temporary warning about buffered rendering not working
This commit is contained in:
parent
29bc07eb0a
commit
c33c3cf3d4
2 changed files with 15 additions and 1 deletions
|
@ -66,6 +66,10 @@
|
|||
#include "UI/InstallZipScreen.h"
|
||||
#include "UI/ProfilerDraw.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "Windows/MainWindow.h"
|
||||
#endif
|
||||
|
||||
EmuScreen::EmuScreen(const std::string &filename)
|
||||
: bootPending_(true), gamePath_(filename), invalid_(true), quit_(false), pauseTrigger_(false), saveStatePreviewShownTime_(0.0), saveStatePreview_(nullptr) {
|
||||
memset(axisState_, 0, sizeof(axisState_));
|
||||
|
@ -111,6 +115,16 @@ void EmuScreen::bootGame(const std::string &filename) {
|
|||
break;
|
||||
case GPUBackend::VULKAN:
|
||||
coreParam.gpuCore = GPU_VULKAN;
|
||||
if (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE) {
|
||||
#ifdef _WIN32
|
||||
if (IDYES == MessageBox(MainWindow::GetHWND(), L"The Vulkan backend is not yet compatible with buffered rendering. Switch to non-buffered (WARNING: This will cause glitches with the other backends unless you switch back)", L"Vulkan Experimental Support", MB_ICONINFORMATION | MB_YESNO)) {
|
||||
g_Config.iRenderingMode = FB_NON_BUFFERED_MODE;
|
||||
} else {
|
||||
errorMessage_ = "Non-buffered rendering required for Vulkan";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (g_Config.bSoftwareRendering) {
|
||||
|
|
|
@ -135,7 +135,7 @@ void GameSettingsScreen::CreateViews() {
|
|||
tabHolder->AddTab(ms->T("Graphics"), graphicsSettingsScroll);
|
||||
|
||||
graphicsSettings->Add(new ItemHeader(gr->T("Rendering Mode")));
|
||||
static const char *renderingBackend[] = { "OpenGL", "Direct3D 9", "Direct3D 11", "Vulkan" };
|
||||
static const char *renderingBackend[] = { "OpenGL", "Direct3D 9", "Direct3D 11", "Vulkan (experimental)" };
|
||||
PopupMultiChoice *renderingBackendChoice = graphicsSettings->Add(new PopupMultiChoice(&g_Config.iGPUBackend, gr->T("Backend"), renderingBackend, GPU_BACKEND_OPENGL, ARRAY_SIZE(renderingBackend), gr->GetName(), screenManager()));
|
||||
renderingBackendChoice->OnChoice.Handle(this, &GameSettingsScreen::OnRenderingBackend);
|
||||
#if !defined(_WIN32)
|
||||
|
|
Loading…
Add table
Reference in a new issue