Old Vsync code deleted

This commit is contained in:
DepressedTWM 2026-08-02 19:08:13 +04:00
parent 6bcf17ea55
commit e7f162ad7c
4 changed files with 0 additions and 9 deletions

View file

@ -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

View file

@ -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, "") \

View file

@ -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;

View file

@ -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