removed unused code for FPS slowdown
authorHolger Schemel <info@artsoft.org>
Tue, 19 May 2015 07:25:29 +0000 (09:25 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2015 07:25:29 +0000 (09:25 +0200)
src/events.c
src/init.c
src/main.h

index c748bbcb41ebb5fa7ace9f22c4fa70f67f90aaf8..041c49b4e13b54d0314a111cf00773e817b95800 100644 (file)
@@ -1551,28 +1551,6 @@ void HandleKey(Key key, int key_status)
          }
          break;
 
-#if 0
-       case KSYM_s:
-         if (!global.fps_slowdown)
-         {
-           global.fps_slowdown = TRUE;
-           global.fps_slowdown_factor = 2;
-           printf("fps slowdown enabled -- display only every 2nd frame\n");
-         }
-         else if (global.fps_slowdown_factor == 2)
-         {
-           global.fps_slowdown_factor = 4;
-           printf("fps slowdown enabled -- display only every 4th frame\n");
-         }
-         else
-         {
-           global.fps_slowdown = FALSE;
-           global.fps_slowdown_factor = 1;
-           printf("fps slowdown disabled\n");
-         }
-         break;
-#endif
-
        case KSYM_v:
          printf("::: currently using game engine version %d\n",
                 game.engine_version);
index c8b468c0dfef0feb7bc5c070d43b8a589b135d46..ad0af02d4ff70b3ea1d85a47ece745fed0dabcf9 100644 (file)
@@ -4549,8 +4549,6 @@ static void InitGlobal()
   global.create_images_dir = NULL;
 
   global.frames_per_second = 0;
-  global.fps_slowdown = FALSE;
-  global.fps_slowdown_factor = 1;
 
   global.border_status = GAME_MODE_MAIN;
 
index 60d53c38b25de52eb1a30de4180702eb0fe07bce..f9c2de0326881b8bc0d7d761f16e62a7d7cbb2e4 100644 (file)
@@ -2522,8 +2522,6 @@ struct GlobalInfo
   int num_toons;
 
   float frames_per_second;
-  boolean fps_slowdown;
-  int fps_slowdown_factor;
 
   /* global values for fading screens and masking borders */
   int border_status;