aboutsummaryrefslogtreecommitdiff
path: root/src/GameInitDispose.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-13 21:34:54 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-14 00:01:12 +0700
commit6d4ca13591d78d302e961b781302d0eec85cd717 (patch)
tree3fc6c7a423fe7676de9558515418928c70e2207a /src/GameInitDispose.cpp
parent7ee1701de3faa287c6d013bd14cefb2cded25bfc (diff)
downloadblackshades-6d4ca13591d78d302e961b781302d0eec85cd717.tar.gz
Simplify FPS calculation
Diffstat (limited to 'src/GameInitDispose.cpp')
-rw-r--r--src/GameInitDispose.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp
index c5c803e..40b6c58 100644
--- a/src/GameInitDispose.cpp
+++ b/src/GameInitDispose.cpp
@@ -70,7 +70,6 @@ Game* makeGame(Config config)
auto game = new Game();
game->screenwidth = config.width;
game->screenheight = config.height;
- game->vblsync = config.vsync;
game->blurness = config.blur;
blood = config.blood;
@@ -105,8 +104,6 @@ Game* makeGame(Config config)
ipstream2.close();
}
- game->sps = 40;
- game->maxfps = 90;
game->disttest = true;
game->cubetest = true;
}
@@ -716,7 +713,6 @@ void initGame(Game* game)
// Setup random seed
srand(time(NULL));
- game->gamespeed = 1;
// Setup block models
if (!game->initialized) {
@@ -1797,7 +1793,6 @@ void initGame(Game* game)
decals.howmanydecals=0;
sprites.howmanysprites=0;
game->losedelay = 1;
- game->framespersecond = 60.0f;
}
void initGl(Game* game)