engine: .bss size reduction for PSP

This commit is contained in:
Crow-bar
2022-08-30 16:47:03 +03:00
parent 91d6fdd190
commit bcf838c42f
3 changed files with 10 additions and 1 deletions

View File

@@ -20,7 +20,11 @@ GNU General Public License for more details.
// than could actually be referenced during gameplay,
// because we don't want to free anything until we are
// sure we won't need it.
#if XASH_PSP
#define MAX_SFX 2048
#else
#define MAX_SFX 8192
#endif
#define MAX_SFX_HASH (MAX_SFX/4)
static int s_numSfx = 0;

View File

@@ -201,8 +201,13 @@ typedef struct
//====================================================================
#if XASH_PSP
#define MAX_DYNAMIC_CHANNELS (20 + NUM_AMBIENTS)
#define MAX_CHANNELS (128 + MAX_DYNAMIC_CHANNELS)
#else
#define MAX_DYNAMIC_CHANNELS (60 + NUM_AMBIENTS)
#define MAX_CHANNELS (256 + MAX_DYNAMIC_CHANNELS) // Scourge Of Armagon has too many static sounds on hip2m4.bsp
#endif
#define MAX_RAW_CHANNELS 16
#define MAX_RAW_SAMPLES 8192

View File

@@ -67,7 +67,7 @@ GNU General Public License for more details.
extern byte *r_temppool;
#define LIGHTMAP_BPP 2 //1 2 3 4
#define LIGHTMAP_BPP 1 //1 2 3 4
#if LIGHTMAP_BPP == 1
#define LIGHTMAP_FORMAT PF_RGB_332