mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
VSync codepath only works on _WIN32 so only show it and check it there.
This commit is contained in:
1 parent
525767dc27
commit
2c74693f6c
3 files changed
+7
-4
No files matched your search
@@ -377,6 +377,7 @@ static const CommandTableEntry commandTable[] = {
|
||||
|
||||
GLES_GPU::GLES_GPU()
|
||||
: resized_(false) {
|
||||
#ifdef _WIN32
|
||||
lastVsync_ = g_Config.bVSync ? 1 : 0;
|
||||
if (gl_extensions.EXT_swap_control_tear) {
|
||||
// See http://developer.download.nvidia.com/opengl/specs/WGL_EXT_swap_control_tear.txt
|
||||
@@ -384,6 +385,7 @@ GLES_GPU::GLES_GPU()
|
||||
} else {
|
||||
glstate.SetVSyncInterval(g_Config.bVSync ? 1 : 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
shaderManager_ = new ShaderManager();
|
||||
transformDraw_.SetShaderManager(shaderManager_);
|
||||
@@ -495,6 +497,7 @@ void GLES_GPU::BeginFrame() {
|
||||
}
|
||||
|
||||
void GLES_GPU::BeginFrameInternal() {
|
||||
#ifdef _WIN32
|
||||
// Turn off vsync when unthrottled
|
||||
int desiredVSyncInterval = g_Config.bVSync ? 1 : 0;
|
||||
if ((PSP_CoreParameter().unthrottle) || (PSP_CoreParameter().fpsLimit == 1))
|
||||
@@ -510,6 +513,7 @@ void GLES_GPU::BeginFrameInternal() {
|
||||
}
|
||||
lastVsync_ = desiredVSyncInterval;
|
||||
}
|
||||
#endif
|
||||
|
||||
textureCache_.StartFrame();
|
||||
transformDraw_.DecimateTrackedVertexArrays();
|
||||
|
||||
+1
-4
@@ -217,13 +217,10 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<Ps
|
||||
ERROR_LOG(G3D, "sceGeListEnqueue: can't enqueue, list address %08X already used", listpc);
|
||||
return 0x80000021;
|
||||
}
|
||||
//if(dls[i].stack == stack) {
|
||||
// ERROR_LOG(G3D, "sceGeListEnqueue: can't enqueue, list stack %08X already used", context);
|
||||
// return 0x80000021;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO Check if list stack dls[i].stack already used then return 0x80000021 as above
|
||||
|
||||
for (int i = 0; i < DisplayListMaxCount; ++i) {
|
||||
int possibleID = (i + nextListID) % DisplayListMaxCount;
|
||||
|
||||
@@ -130,7 +130,9 @@ void GameSettingsScreen::CreateViews() {
|
||||
static const char *internalResolutions[] = {"Auto (1:1)", "1x PSP", "2x PSP", "3x PSP", "4x PSP", "5x PSP" };
|
||||
#endif
|
||||
graphicsSettings->Add(new PopupMultiChoice(&g_Config.iInternalResolution, gs->T("Rendering Resolution"), internalResolutions, 0, ARRAY_SIZE(internalResolutions), gs, screenManager()))->OnClick.Handle(this, &GameSettingsScreen::OnResolutionChange);
|
||||
#ifdef _WIN32
|
||||
graphicsSettings->Add(new CheckBox(&g_Config.bVSync, gs->T("VSync")));
|
||||
#endif
|
||||
graphicsSettings->Add(new CheckBox(&g_Config.bHardwareTransform, gs->T("Hardware Transform")));
|
||||
graphicsSettings->Add(new CheckBox(&g_Config.bVertexCache, gs->T("Vertex Cache")));
|
||||
graphicsSettings->Add(new CheckBox(&g_Config.bLowQualitySplineBezier, gs->T("LowCurves", "Low quality spline/bezier curves")));
|
||||
|
||||
Reference in new issue
Block a user