shithub: patch

Download patch

ref: feed31bb02f51d7ca45dfc8423decdb5b3228783
parent: 70cc8eb952dc74cc8cd80b4329945db4070351d5
author: qwx <qwx@sciops.net>
date: Thu Jul 22 23:19:14 EDT 2021

doom-limits: raise heap size, raise drawing limits further

and remove some previous modifications that can cause demo
desyncs

--- a/doom-limits
+++ b/doom-limits
@@ -4,6 +4,8 @@
 . savegame buffer overflow: for maps that are too large; does not work
   correctly, loading several times in game will eventually crash (will not
   corrupt anything though)
+. demos can desync when raising max intercepts and spechits, so left alone
+  despite possible problems
 
 diff -Naur a/sys/src/games/doom/g_game.c b/sys/src/games/doom/g_game.c
 --- a/sys/src/games/doom/g_game.c	Wed Jul 29 13:45:35 2015
@@ -54,46 +56,10 @@
  #include "m_misc.h"
  
 -int mb_used = 6;	/* 6MB heap */
-+int mb_used = 12;	/* 12MB heap */
++int mb_used = 32;	/* 32MB heap */
  
  void I_Init (void)
  {
-diff -Naur a/sys/src/games/doom/p_enemy.c b/sys/src/games/doom/p_enemy.c
---- a/sys/src/games/doom/p_enemy.c	Mon Jul 27 20:08:20 2015
-+++ b/sys/src/games/doom/p_enemy.c	Tue Aug 11 15:21:28 2015
-@@ -262,7 +262,7 @@
- fixed_t	xspeed[8] = {FRACUNIT,47000,0,-47000,-FRACUNIT,-47000,0,47000};
- fixed_t yspeed[8] = {0,47000,FRACUNIT,47000,0,-47000,-FRACUNIT,-47000};
- 
--#define MAXSPECIALCROSS	8
-+#define MAXSPECIALCROSS	128
- 
- extern	line_t*	spechit[MAXSPECIALCROSS];
- extern	int	numspechit;
-diff -Naur a/sys/src/games/doom/p_local.h b/sys/src/games/doom/p_local.h
---- a/sys/src/games/doom/p_local.h	Sun Aug  2 19:57:59 2015
-+++ b/sys/src/games/doom/p_local.h	Tue Aug 11 15:21:28 2015
-@@ -153,7 +153,7 @@
-     }			d;
- } intercept_t;
- 
--#define MAXINTERCEPTS	128
-+#define MAXINTERCEPTS	512
- 
- extern intercept_t	intercepts[MAXINTERCEPTS];
- extern intercept_t*	intercept_p;
-diff -Naur a/sys/src/games/doom/p_map.c b/sys/src/games/doom/p_map.c
---- a/sys/src/games/doom/p_map.c	Mon Jul 27 20:08:20 2015
-+++ b/sys/src/games/doom/p_map.c	Tue Aug 11 15:21:28 2015
-@@ -62,7 +62,7 @@
- 
- // keep track of special lines as they are hit,
- // but don't process them until the move is proven valid
--#define MAXSPECIALCROSS		8
-+#define MAXSPECIALCROSS		128
- 
- line_t*		spechit[MAXSPECIALCROSS];
- int		numspechit;
 diff -Naur a/sys/src/games/doom/p_spec.c b/sys/src/games/doom/p_spec.c
 --- a/sys/src/games/doom/p_spec.c	Mon Jul 27 20:08:20 2015
 +++ b/sys/src/games/doom/p_spec.c	Tue Aug 11 15:21:28 2015
@@ -135,7 +101,7 @@
  #define SIL_BOTH		3
  
 -#define MAXDRAWSEGS		256
-+#define MAXDRAWSEGS		1024
++#define MAXDRAWSEGS		4096
  
  
  
@@ -167,7 +133,7 @@
  
  
 -#define MAXVISSPRITES  	128
-+#define MAXVISSPRITES  	1024
++#define MAXVISSPRITES  	4096
  
  extern vissprite_t	vissprites[MAXVISSPRITES];
  extern vissprite_t*	vissprite_p;