Add quality presets
This commit is contained in:
parent
a199a84d31
commit
1362a93b4d
7 changed files with 72 additions and 17 deletions
|
@ -6,6 +6,50 @@
|
|||
|
||||
// TODO: quality presets?
|
||||
|
||||
#if PRESET_QUALITY == 1 // ultra low
|
||||
#define LCR_SETTING_RESOLUTION_X 256
|
||||
#define LCR_SETTING_RESOLUTION_Y 200
|
||||
#define LCR_SETTING_POTATO_GRAPHICS 1
|
||||
#define LCR_SETTING_332_COLOR 1
|
||||
#define LCR_SETTING_FPS 25
|
||||
#define LCR_SETTING_CAR_SHADOW 0
|
||||
#define LCR_SETTING_CAR_ANIMATION_SUBDIVIDE 0
|
||||
#define LCR_SETTING_PARTICLES 0
|
||||
#define LCR_SETTING_TEXTURE_SUBSAMPLE 16
|
||||
#define LCR_SETTING_FOG 0
|
||||
#define LCR_SETTING_MUSIC 0
|
||||
#elif PRESET_QUALITY == 2 // low
|
||||
#define LCR_SETTING_RESOLUTION_X 512
|
||||
#define LCR_SETTING_RESOLUTION_Y 400
|
||||
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 2
|
||||
#define LCR_SETTING_CAR_SHADOW 0
|
||||
#define LCR_SETTING_CAR_ANIMATION_SUBDIVIDE 0
|
||||
#define LCR_SETTING_PARTICLES 0
|
||||
#define LCR_SETTING_TEXTURE_SUBSAMPLE 8
|
||||
#define LCR_SETTING_FOG 0
|
||||
#define LCR_SETTING_FPS 30
|
||||
#elif PRESET_QUALITY == 3 // normal
|
||||
#define LCR_SETTING_RESOLUTION_X 800
|
||||
#define LCR_SETTING_RESOLUTION_Y 600
|
||||
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 1
|
||||
#define LCR_SETTING_CAR_SHADOW 1
|
||||
#define LCR_SETTING_CAR_ANIMATION_SUBDIVIDE 1
|
||||
#define LCR_SETTING_PARTICLES 1
|
||||
#define LCR_SETTING_TEXTURE_SUBSAMPLE 4
|
||||
#define LCR_SETTING_FOG 0
|
||||
#define LCR_SETTING_FPS 30
|
||||
#elif PRESET_QUALITY == 4 // high
|
||||
#define LCR_SETTING_RESOLUTION_X 1024
|
||||
#define LCR_SETTING_RESOLUTION_Y 768
|
||||
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 1
|
||||
#define LCR_SETTING_CAR_SHADOW 1
|
||||
#define LCR_SETTING_CAR_ANIMATION_SUBDIVIDE 1
|
||||
#define LCR_SETTING_PARTICLES 1
|
||||
#define LCR_SETTING_TEXTURE_SUBSAMPLE 1
|
||||
#define LCR_SETTING_FOG 1
|
||||
#define LCR_SETTING_FPS 45
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue