mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-01 14:24:02 +00:00
Don't swapbuffer if stepping. Default to 2x zoom on Windows. Alert on missing atlases.
This commit is contained in:
parent
e024f29240
commit
8833f6eb25
@ -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);
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user