~strahinja/lav-sdl

b5210924e6d71c7c9adc373dac41e9a1cab5260b — Страхиња Радић 6 months ago 42c2265
Override VSync, always delay

Signed-off-by: Страхиња Радић <contact@strahinja.org>
1 files changed, 2 insertions(+), 3 deletions(-)

M lav-sdl.c
M lav-sdl.c => lav-sdl.c +2 -3
@@ 17,7 17,6 @@
#include "local.h"

#define ANIM_STEPS	    10
#define ANIM_DELAY	    10
#define CELL_SIZE	    32
#define DEFAULT_WIDTH	    1280
#define DEFAULT_HEIGHT	    960


@@ 832,8 831,8 @@ main(int argc, char** argv)
	}

	SDL_SetWindowTitle(window, WIN_TITLE);
	SDL_RenderSetVSync(renderer, 1);
	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
	SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, "1", SDL_HINT_OVERRIDE);

	load_textures();
	if (argc > 1)


@@ 866,8 865,8 @@ main(int argc, char** argv)
				redraw = 0;
			}

			SDL_Delay(10);
		}
		SDL_Delay(10);
	}

	return 0;