pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

doomlegacy-devel: Use heap of OS instead of Doom zone memory.



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Mon Apr 17 18:36:29 2023 +0200
Changeset:	db1d414637a322354c498b0f50807e149e32e568

Modified Files:
	doomlegacy-devel/TODO
	doomlegacy-devel/distinfo
Added Files:
	doomlegacy-devel/patches/patch-src_z__zone.c

Log Message:
doomlegacy-devel: Use heap of OS instead of Doom zone memory.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=db1d414637a322354c498b0f50807e149e32e568

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 doomlegacy-devel/TODO                        | 10 +++++++++
 doomlegacy-devel/distinfo                    |  1 +
 doomlegacy-devel/patches/patch-src_z__zone.c | 31 ++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diffs:
diff --git a/doomlegacy-devel/TODO b/doomlegacy-devel/TODO
index 6cda9c720c..ba447b43ee 100644
--- a/doomlegacy-devel/TODO
+++ b/doomlegacy-devel/TODO
@@ -13,5 +13,15 @@ Part 25: Add UMAPINFO support
 [X] Hook keys into game engine
     => All keys should work now, up to the limits of the engine
 
+=> Created upstream feature request ticket #100
+
+
+Part 26: Incorrect voodoo doll behaviour
+========================================
+[X] Player stuck in Solar Struggle (map E3M6)
+    Voodoo doll transfers damage to the player, but seems to not take thrust
+    (is not pushed away e.g. from an explosion as expected).
+    => Reported upstream in ticket #688
+
 
 EOF
diff --git a/doomlegacy-devel/distinfo b/doomlegacy-devel/distinfo
index b3e9e16ee5..400533238e 100644
--- a/doomlegacy-devel/distinfo
+++ b/doomlegacy-devel/distinfo
@@ -20,3 +20,4 @@ SHA1 (patch-src_p__setup.c) = 77ef2316b3d5ac72274ccfcf6bff3229a9245997
 SHA1 (patch-src_w__wad.c) = 9853306fd400ee53a48efa38c31e5dbec5d51d82
 SHA1 (patch-src_w__wad.h) = 683283a32222e96a6472f103d3dc51e7229e4753
 SHA1 (patch-src_wi__stuff.c) = bd577ec36ef5580e65dec3befa7c7c74aeb92de2
+SHA1 (patch-src_z__zone.c) = 13f4ff4a4af836f62779544b72e83b9eb109f7a5
diff --git a/doomlegacy-devel/patches/patch-src_z__zone.c b/doomlegacy-devel/patches/patch-src_z__zone.c
new file mode 100644
index 0000000000..6f36560a8f
--- /dev/null
+++ b/doomlegacy-devel/patches/patch-src_z__zone.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Use heap of OS instead of Doom zone memory.
+
+--- src/z_zone.c.orig	2023-02-10 15:51:01.000000000 +0000
++++ src/z_zone.c
+@@ -100,7 +100,7 @@
+ // When the user writes out-of-bounds of malloced region it will do a sigsegv.
+ // It does not use the tags, cannot recover PU_CACHE, PU_LEVEL, etc. memory.
+ // Uses the most memory of all choices.
+-//#define PLAIN_MALLOC
++#define PLAIN_MALLOC
+ 
+ // [WDJ] Combination of malloc and tags.
+ // Does malloc from heap, so will grow from heap as use increases.
+@@ -112,13 +112,13 @@
+ // allocations from it.
+ // Has a command line option to set the zone block size ( -mb <int> ).
+ // It also has some conditional experimental code.
+-#define ZONE_ZALLOC
++//#define ZONE_ZALLOC
+ 
+ // Grows the initial allocation block when it runs out of memory.
+ // Runs in the smallest memory of all the choices.
+ // Uses tags, and recovers PU_CACHE and PU_LEVEL memory first.
+ // Applied as an option to ZONE_ZALLOC.
+-#define GROW_ZONE
++//#define GROW_ZONE
+ 
+ // Aggressively purges any PU_CACHE, clearing cache faster.
+ // This stresses the memory system more, testing user code to not


Home | Main Index | Thread Index | Old Index