From 8833f6eb25f537bdb0a6caf682629cd873bdfa6a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 30 Mar 2013 08:34:27 +0100 Subject: [PATCH] Don't swapbuffer if stepping. Default to 2x zoom on Windows. Alert on missing atlases. --- Core/Config.cpp | 4 ++++ Core/Core.cpp | 7 +++++-- Core/Util/PPGeDraw.cpp | 1 + android/jni/NativeApp.cpp | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 360439033b..326044fd4c 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -69,7 +69,11 @@ void Config::Load(const char *iniFileName) IniFile::Section *graphics = iniFile.GetOrCreateSection("Graphics"); graphics->Get("ShowFPSCounter", &bShowFPSCounter, false); graphics->Get("DisplayFramebuffer", &bDisplayFramebuffer, false); +#ifdef _WIN32 + graphics->Get("WindowZoom", &iWindowZoom, 2); +#else graphics->Get("WindowZoom", &iWindowZoom, 1); +#endif graphics->Get("BufferedRendering", &bBufferedRendering, true); graphics->Get("HardwareTransform", &bHardwareTransform, true); graphics->Get("LinearFiltering", &bLinearFiltering, false); diff --git a/Core/Core.cpp b/Core/Core.cpp index 38bed275b0..33f1526f12 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -119,9 +119,12 @@ void Core_RunLoop() NativeRender(); // Simple throttling to not burn the GPU in the menu. #ifdef _WIN32 - if (globalUIState != UISTATE_INGAME) + if (globalUIState != UISTATE_INGAME) { Sleep(15); - GL_SwapBuffers(); + GL_SwapBuffers(); + } else if (!Core_IsStepping()) { + GL_SwapBuffers(); + } #endif } } diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index c920d73018..9ca96355b1 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -118,6 +118,7 @@ void __PPGeInit() int height; int flags; if (!LoadZIM("ppge_atlas.zim", &width, &height, &flags, &imageData)) { + PanicAlert("Failed to load ppge_atlas.zim.\n\nPlace it in the directory \"assets\" under your PPSSPP directory."); ERROR_LOG(HLE, "PPGe init failed - no atlas texture. PPGe stuff will not be drawn."); return; } diff --git a/android/jni/NativeApp.cpp b/android/jni/NativeApp.cpp index 7978bd898c..1e389ad23e 100644 --- a/android/jni/NativeApp.cpp +++ b/android/jni/NativeApp.cpp @@ -334,7 +334,8 @@ void NativeInitGraphics() uiTexture = new Texture(); if (!uiTexture->Load("ui_atlas.zim")) { - ELOG("Failed to load texture"); + PanicAlert("Failed to load ui_atlas.zim.\n\nPlace it in the directory \"assets\" under your PPSSPP directory."); + ELOG("Failed to load ui_atlas.zim"); } uiTexture->Bind(0);