mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 11:19:03 +02:00
Destroy FBOs only on actual resize.
As a side effect, this means going to settings won't reset all FBOs anymore. The behavior can still be obtained by changing render resolution or rendering mode. This makes resizing the window faster on Windows, and resumes quicker from pause.
This commit is contained in:
1 parent
030f803002
commit
98ba7afa83
6 files changed
+27
-20
No files matched your search
@@ -1039,9 +1039,6 @@ void FramebufferManagerVulkan::BeginFrameVulkan() {
|
||||
|
||||
void FramebufferManagerVulkan::EndFrame() {
|
||||
if (resized_) {
|
||||
// TODO: Only do this if the new size actually changed the renderwidth/height.
|
||||
DestroyAllFBOs();
|
||||
|
||||
// Check if postprocessing shader is doing upscaling as it requires native resolution
|
||||
const ShaderInfo *shaderInfo = 0;
|
||||
if (g_Config.sPostShaderName != "Off") {
|
||||
@@ -1073,7 +1070,9 @@ void FramebufferManagerVulkan::EndFrame() {
|
||||
PSP_CoreParameter().renderHeight = 272 * zoom;
|
||||
}
|
||||
|
||||
UpdateSize();
|
||||
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
|
||||
DestroyAllFBOs();
|
||||
}
|
||||
|
||||
resized_ = false;
|
||||
#ifdef _WIN32
|
||||
@@ -1082,7 +1081,6 @@ void FramebufferManagerVulkan::EndFrame() {
|
||||
ShowScreenResolution();
|
||||
}
|
||||
#endif
|
||||
ClearBuffer();
|
||||
}
|
||||
|
||||
// We flush to memory last requested framebuffer, if any.
|
||||
|
||||
Reference in new issue
Block a user