anarch/settings.h

49 lines
1.1 KiB
C
Raw Normal View History

2019-09-26 15:18:44 -04:00
#ifndef _SFG_SETTINGS_H
#define _SFG_SETTINGS_H
#define SFG_FPS 60
#define SFG_RESOLUTION_X 1024
#define SFG_RESOLUTION_Y 768
2019-10-02 06:02:52 -04:00
/**
Turn on for previes mode for map editing (flying, noclip, fast movement etc.).
*/
2019-10-02 14:31:27 -04:00
#define SFG_PREVIEW_MODE 0
2019-10-02 06:02:52 -04:00
/**
How much faster movement is in the preview mode.
*/
#define SFG_PREVIEW_MODE_SPEED_MULTIPLIER 2
2019-09-29 08:54:40 -04:00
/**
Hint as to whether run in fullscreen, if the platform allows it.
*/
#define SFG_FULLSCREEN 0
2019-09-28 15:42:02 -04:00
/**
Whether shadows (fog) should be dithered, i.e. more smooth (needs a bit more
2019-10-03 17:37:52 -04:00
CPU performance and memory).
2019-09-28 15:42:02 -04:00
*/
2019-09-26 19:25:22 -04:00
#define SFG_DITHERED_SHADOW 1
2019-09-28 15:42:02 -04:00
/**
Maximum number of squares that will be traversed by any cast ray. Smaller
number is faster but can cause visual artifacts.
*/
2019-09-27 13:04:49 -04:00
#define SFG_RAYCASTING_MAX_STEPS 30
2019-09-28 15:42:02 -04:00
/**
Maximum number of hits any cast ray will register. Smaller number is faster
but can cause visual artifacts.
*/
2019-09-27 13:04:49 -04:00
#define SFG_RAYCASTING_MAX_HITS 10
2019-09-28 15:42:02 -04:00
/**
How many times rendering should be subsampled horizontally. Bigger number
can significantly improve performance (by casting fewer rays), but can look
a little worse.
*/
#define SFG_RAYCASTING_SUBSAMPLE 1
2019-09-26 15:18:44 -04:00
#endif // guard