mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +00:00
Old Vsync code deleted
This commit is contained in:
parent
6bcf17ea55
commit
e7f162ad7c
4 changed files with 0 additions and 9 deletions
|
|
@ -35,10 +35,6 @@ defScreenH=0
|
||||||
# is upscaled
|
# is upscaled
|
||||||
smoothScaling=false
|
smoothScaling=false
|
||||||
|
|
||||||
# Sync screen redraws to the monitor refresh rate
|
|
||||||
# (default: enabled)
|
|
||||||
vsync=true
|
|
||||||
|
|
||||||
# Enforce a static frame rate
|
# Enforce a static frame rate
|
||||||
# (0 = disabled)
|
# (0 = disabled)
|
||||||
fixedFramerate=0
|
fixedFramerate=0
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ void Config::read(int argc, char *argv[]){
|
||||||
PO_DESC(fixedAspectRatio, bool, true) \
|
PO_DESC(fixedAspectRatio, bool, true) \
|
||||||
/*PO_DESC(AspectPreset, int, 1)*/ \
|
/*PO_DESC(AspectPreset, int, 1)*/ \
|
||||||
PO_DESC(smoothScaling, bool, false) \
|
PO_DESC(smoothScaling, bool, false) \
|
||||||
PO_DESC(vsync, bool, true) \
|
|
||||||
PO_DESC(defScreenW, int, 0) \
|
PO_DESC(defScreenW, int, 0) \
|
||||||
PO_DESC(defScreenH, int, 0) \
|
PO_DESC(defScreenH, int, 0) \
|
||||||
PO_DESC(windowTitle, std::string, "") \
|
PO_DESC(windowTitle, std::string, "") \
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ struct Config{
|
||||||
bool resolutionOverridden;
|
bool resolutionOverridden;
|
||||||
bool Windows_AllocConsole;
|
bool Windows_AllocConsole;
|
||||||
bool smoothScaling;
|
bool smoothScaling;
|
||||||
bool vsync;
|
|
||||||
bool pancakes;
|
bool pancakes;
|
||||||
int defScreenW;
|
int defScreenW;
|
||||||
int defScreenH;
|
int defScreenH;
|
||||||
|
|
|
||||||
|
|
@ -125,9 +125,6 @@ int rgssThreadFun(void *userdata){
|
||||||
Debug() << "[main] GL Renderer :" << glGetStringInt(GL_RENDERER);
|
Debug() << "[main] GL Renderer :" << glGetStringInt(GL_RENDERER);
|
||||||
Debug() << "[main] GL Version :" << glGetStringInt(GL_VERSION);
|
Debug() << "[main] GL Version :" << glGetStringInt(GL_VERSION);
|
||||||
Debug() << "[main] GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
|
Debug() << "[main] GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
|
||||||
|
|
||||||
bool vsync = conf.vsync || conf.syncToRefreshrate;
|
|
||||||
SDL_GL_SetSwapInterval(vsync ? 1 : 0);
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
GLDebugLogger dLogger;
|
GLDebugLogger dLogger;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue