From 3df3d0f5921f9a34b762fb80d43a983013df0785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 9 Oct 2020 14:47:35 +0200 Subject: [PATCH] Update settings --- main_sdl.c | 31 +++++++++++++++++++++---------- settings.h | 9 +++++---- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/main_sdl.c b/main_sdl.c index ae6e2aa..94471a4 100644 --- a/main_sdl.c +++ b/main_sdl.c @@ -21,20 +21,33 @@ #define SFG_OS_IS_MALWARE 1 #endif -#define SFG_BACKGROUND_BLUR 1 - -#define SFG_FPS 60 - -#define SFG_LOG(str) puts(str); - // #define SFG_START_LEVEL 1 // #define SFG_IMMORTAL 1 // #define SFG_UNLOCK_DOOR 1 // #define SFG_REVEAL_MAP 1 // #define SFG_INFINITE_AMMO 1 - #define SFG_SCREEN_RESOLUTION_X 800 - #define SFG_SCREEN_RESOLUTION_Y 600 +#ifndef GAME_LQ + // higher quality + #define SFG_FPS 60 + #define SFG_LOG(str) puts(str); + #define SFG_SCREEN_RESOLUTION_X 700 + #define SFG_SCREEN_RESOLUTION_Y 512 + #define SFG_DITHERED_SHADOW 1 + #define SFG_DIMINISH_SPRITES 1 + #define SFG_HEADBOB_SHEAR (-1 * SFG_SCREEN_RESOLUTION_Y / 80) + #define SFG_BACKGROUND_BLUR 1 +#else + // lower quality + #define SFG_FPS 35 + #define SFG_SCREEN_RESOLUTION_X 640 + #define SFG_SCREEN_RESOLUTION_Y 480 + #define SFG_RAYCASTING_SUBSAMPLE 2 + #define SFG_RESOLUTION_SCALEDOWN 2 + #define SFG_DIMINISH_SPRITES 0 + #define SFG_DITHERED_SHADOW 0 + #define SFG_BACKGROUND_BLUR 0 +#endif // #define SFG_SCREEN_RESOLUTION_X 88 // #define SFG_SCREEN_RESOLUTION_Y 110 @@ -47,8 +60,6 @@ damage to make it a bit harder. */ #define SFG_PLAYER_DAMAGE_MULTIPLIER 1024 -#define SFG_DITHERED_SHADOW 1 -#define SFG_HEADBOB_SHEAR (-1 * SFG_SCREEN_RESOLUTION_Y / 80) #define MUSIC_VOLUME 16 diff --git a/settings.h b/settings.h index 69be0e9..eb5b746 100644 --- a/settings.h +++ b/settings.h @@ -73,10 +73,11 @@ /** Distance, in RCL_Units, to which textures will be drawn. Textures behind this - distance will be replaced by an average constant color, which can help - performance. Value 0 turns texturing completely off, which is much faster than - having just a low value, values >= 65535 activate texturing completely, which - can be a little faster than setting having a high value lower than this limit. + distance will be replaced by an average constant color, which maybe can help + performance and also serves as an antialiasim (2 level MIP map). Value 0 turns + texturing completely off, which is much faster than having just a low value, + values >= 65535 activate texturing completely, which can be a little faster + than setting having a high value lower than this limit. */ #ifndef SFG_TEXTURE_DISTANCE #define SFG_TEXTURE_DISTANCE 100000