Skip to content

Commit

Permalink
quadruple some render limits
Browse files Browse the repository at this point in the history
lord forgive me for this
  • Loading branch information
fgsfdsfgs committed Oct 23, 2020
1 parent c1ccbcd commit 2af3b49
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.Vita.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ The `Merge file` option is the launcher version of the `-merge` command line opt

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.

By popular request some of the static render limits (`MAXVISPLANES`, `MAXVISSPRITES`, `MAXDRAWSEGS`) have been quadrupled in this fork to accomodate for SIGIL.

## Credits
- [these people](https://github.com/chocolate-doom/chocolate-doom/blob/master/AUTHORS) for Chocolate Doom itself;
- Vita SDK Team for the Vita SDK;
Expand Down
2 changes: 1 addition & 1 deletion src/doom/r_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#define SIL_TOP 2
#define SIL_BOTH 3

#define MAXDRAWSEGS 256
#define MAXDRAWSEGS 1024



Expand Down
2 changes: 1 addition & 1 deletion src/doom/r_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ planefunction_t ceilingfunc;
//

// Here comes the obnoxious "visplane".
#define MAXVISPLANES 128
#define MAXVISPLANES 512
visplane_t visplanes[MAXVISPLANES];
visplane_t* lastvisplane;
visplane_t* floorplane;
Expand Down
2 changes: 1 addition & 1 deletion src/doom/r_things.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@



#define MAXVISSPRITES 128
#define MAXVISSPRITES 512

extern vissprite_t vissprites[MAXVISSPRITES];
extern vissprite_t* vissprite_p;
Expand Down
6 changes: 3 additions & 3 deletions src/heretic/r_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ typedef struct

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

#define MAXVISPLANES 128
#define MAXVISPLANES 512
#define MAXOPENINGS SCREENWIDTH*64

typedef struct
Expand Down Expand Up @@ -184,7 +184,7 @@ typedef struct drawseg_s
#define SIL_TOP 2
#define SIL_BOTH 3

#define MAXDRAWSEGS 256
#define MAXDRAWSEGS 1024

// A vissprite_t is a thing that will be drawn during a refresh
typedef struct vissprite_s
Expand Down Expand Up @@ -400,7 +400,7 @@ void R_PrecacheLevel(void);
//
// R_things.c
//
#define MAXVISSPRITES 128
#define MAXVISSPRITES 512

extern vissprite_t vissprites[MAXVISSPRITES], *vissprite_p;
extern vissprite_t vsprsortedhead;
Expand Down
6 changes: 3 additions & 3 deletions src/hexen/r_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ typedef struct

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

#define MAXVISPLANES 160
#define MAXVISPLANES 640
#define MAXOPENINGS SCREENWIDTH*64

typedef struct
Expand Down Expand Up @@ -237,7 +237,7 @@ typedef struct drawseg_s
#define SIL_TOP 2
#define SIL_BOTH 3

#define MAXDRAWSEGS 256
#define MAXDRAWSEGS 1024

// A vissprite_t is a thing that will be drawn during a refresh
typedef struct vissprite_s
Expand Down Expand Up @@ -466,7 +466,7 @@ void R_PrecacheLevel(void);
//
// R_things.c
//
#define MAXVISSPRITES 192
#define MAXVISSPRITES 768

extern vissprite_t vissprites[MAXVISSPRITES], *vissprite_p;
extern vissprite_t vsprsortedhead;
Expand Down
2 changes: 1 addition & 1 deletion src/strife/r_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#define SIL_TOP 2
#define SIL_BOTH 3

#define MAXDRAWSEGS 256
#define MAXDRAWSEGS 1024



Expand Down
2 changes: 1 addition & 1 deletion src/strife/r_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ planefunction_t ceilingfunc;

// Here comes the obnoxious "visplane".
// haleyjd 08/29/10: [STRIFE] MAXVISPLANES increased to 200
#define MAXVISPLANES 200
#define MAXVISPLANES 800
visplane_t visplanes[MAXVISPLANES];
visplane_t* lastvisplane;
visplane_t* floorplane;
Expand Down
2 changes: 1 addition & 1 deletion src/strife/r_things.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@



#define MAXVISSPRITES 128
#define MAXVISSPRITES 512

extern vissprite_t vissprites[MAXVISSPRITES];
extern vissprite_t* vissprite_p;
Expand Down

0 comments on commit 2af3b49

Please sign in to comment.