Skip to content

Commit 2af3b49

Browse files
committed
quadruple some render limits
lord forgive me for this
1 parent c1ccbcd commit 2af3b49

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

README.Vita.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ The `Merge file` option is the launcher version of the `-merge` command line opt
6666

6767
You can specify custom command line parameters in a [response file](https://doomwiki.org/wiki/Parameter#.40), then load it using the `Override response file` option. Don't forget to select the correct game.
6868

69+
By popular request some of the static render limits (`MAXVISPLANES`, `MAXVISSPRITES`, `MAXDRAWSEGS`) have been quadrupled in this fork to accomodate for SIGIL.
70+
6971
## Credits
7072
- [these people](https://github.com/chocolate-doom/chocolate-doom/blob/master/AUTHORS) for Chocolate Doom itself;
7173
- Vita SDK Team for the Vita SDK;

src/doom/r_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#define SIL_TOP 2
4949
#define SIL_BOTH 3
5050

51-
#define MAXDRAWSEGS 256
51+
#define MAXDRAWSEGS 1024
5252

5353

5454

src/doom/r_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ planefunction_t ceilingfunc;
4242
//
4343

4444
// Here comes the obnoxious "visplane".
45-
#define MAXVISPLANES 128
45+
#define MAXVISPLANES 512
4646
visplane_t visplanes[MAXVISPLANES];
4747
visplane_t* lastvisplane;
4848
visplane_t* floorplane;

src/doom/r_things.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
#define MAXVISSPRITES 128
25+
#define MAXVISSPRITES 512
2626

2727
extern vissprite_t vissprites[MAXVISSPRITES];
2828
extern vissprite_t* vissprite_p;

src/heretic/r_local.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ typedef struct
147147

148148
typedef byte lighttable_t; // this could be wider for >8 bit display
149149

150-
#define MAXVISPLANES 128
150+
#define MAXVISPLANES 512
151151
#define MAXOPENINGS SCREENWIDTH*64
152152

153153
typedef struct
@@ -184,7 +184,7 @@ typedef struct drawseg_s
184184
#define SIL_TOP 2
185185
#define SIL_BOTH 3
186186

187-
#define MAXDRAWSEGS 256
187+
#define MAXDRAWSEGS 1024
188188

189189
// A vissprite_t is a thing that will be drawn during a refresh
190190
typedef struct vissprite_s
@@ -400,7 +400,7 @@ void R_PrecacheLevel(void);
400400
//
401401
// R_things.c
402402
//
403-
#define MAXVISSPRITES 128
403+
#define MAXVISSPRITES 512
404404

405405
extern vissprite_t vissprites[MAXVISSPRITES], *vissprite_p;
406406
extern vissprite_t vsprsortedhead;

src/hexen/r_local.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ typedef struct
200200

201201
typedef byte lighttable_t; // this could be wider for >8 bit display
202202

203-
#define MAXVISPLANES 160
203+
#define MAXVISPLANES 640
204204
#define MAXOPENINGS SCREENWIDTH*64
205205

206206
typedef struct
@@ -237,7 +237,7 @@ typedef struct drawseg_s
237237
#define SIL_TOP 2
238238
#define SIL_BOTH 3
239239

240-
#define MAXDRAWSEGS 256
240+
#define MAXDRAWSEGS 1024
241241

242242
// A vissprite_t is a thing that will be drawn during a refresh
243243
typedef struct vissprite_s
@@ -466,7 +466,7 @@ void R_PrecacheLevel(void);
466466
//
467467
// R_things.c
468468
//
469-
#define MAXVISSPRITES 192
469+
#define MAXVISSPRITES 768
470470

471471
extern vissprite_t vissprites[MAXVISSPRITES], *vissprite_p;
472472
extern vissprite_t vsprsortedhead;

src/strife/r_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#define SIL_TOP 2
4949
#define SIL_BOTH 3
5050

51-
#define MAXDRAWSEGS 256
51+
#define MAXDRAWSEGS 1024
5252

5353

5454

src/strife/r_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ planefunction_t ceilingfunc;
4343

4444
// Here comes the obnoxious "visplane".
4545
// haleyjd 08/29/10: [STRIFE] MAXVISPLANES increased to 200
46-
#define MAXVISPLANES 200
46+
#define MAXVISPLANES 800
4747
visplane_t visplanes[MAXVISPLANES];
4848
visplane_t* lastvisplane;
4949
visplane_t* floorplane;

src/strife/r_things.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
#define MAXVISSPRITES 128
25+
#define MAXVISSPRITES 512
2626

2727
extern vissprite_t vissprites[MAXVISSPRITES];
2828
extern vissprite_t* vissprite_p;

0 commit comments

Comments
 (0)