mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-06 04:33:49 +01: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
@@ -752,7 +752,6 @@ static const D3DVERTEXELEMENT9 g_FramebufferVertexElements[] = {
|
||||
|
||||
void FramebufferManagerDX9::EndFrame() {
|
||||
if (resized_) {
|
||||
DestroyAllFBOs();
|
||||
// Actually, auto mode should be more granular...
|
||||
// Round up to a zoom factor for the render size.
|
||||
int zoom = g_Config.iInternalResolution;
|
||||
@@ -775,7 +774,9 @@ static const D3DVERTEXELEMENT9 g_FramebufferVertexElements[] = {
|
||||
PSP_CoreParameter().renderHeight = 272 * zoom;
|
||||
}
|
||||
|
||||
UpdateSize();
|
||||
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
|
||||
DestroyAllFBOs();
|
||||
}
|
||||
// Seems related - if you're ok with numbers all the time, show some more :)
|
||||
if (g_Config.iShowFPSCounter != 0) {
|
||||
ShowScreenResolution();
|
||||
|
||||
Reference in new issue
Block a user