瀏覽代碼

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…
取消
儲存