Преглед изворни кода

Vsync solves most of the screen tearing issues.

master
Ben Kurtovic пре 8 година
родитељ
комит
3991633ad2
1 измењених фајлова са 1 додато и 0 уклоњено
  1. +1
    -0
      src/emulator.c

+ 1
- 0
src/emulator.c Прегледај датотеку

@@ -66,6 +66,7 @@ static void setup_graphics(bool fullscreen, unsigned scale)
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");
SDL_SetWindowTitle(emu.window, "crater");
SDL_ShowCursor(SDL_DISABLE);
SDL_GL_SetSwapInterval(1); // Vsync

SDL_SetRenderDrawColor(emu.renderer, 0x00, 0x00, 0x00, 0xFF);
SDL_RenderClear(emu.renderer);


Loading…
Откажи
Сачувај