Przeglądaj źródła

Limiting FPS to 60 for uniformity with other examples.

Marco Lizza 6 lat temu
rodzic
commit
0c5bee4c9a
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      examples/shaders/shaders_palette_switch.c

+ 1 - 0
examples/shaders/shaders_palette_switch.c

@@ -88,6 +88,7 @@ int main()
     // Initial index not set, will be automatically bounded below.
     // Initial index not set, will be automatically bounded below.
     int currentPalette = -1;
     int currentPalette = -1;
 
 
+    SetTargetFPS(60);                       // Set our game to run at 60 frames-per-second
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------
 
 
     // Main game loop
     // Main game loop