Commit graph

21261 commits

Author SHA1 Message Date
NepDisk
c6167030f0 Show shadow patch cache message in software 2025-12-07 17:32:01 -05:00
Alug
84538f06b0 w_wad: use unordered map to cache wad start and end folders 2025-12-07 16:09:44 -05:00
Alug
d14a3f64db w_wad: optimize W_LumpExists
in two parts:
- Use our lumpcache lookup first (our unordered map), BUT since it is case insensitive we extract our lump out of it to do another case sensitive name compare
- In the manual lump seach falltthrough case, we can also check against the string lenghts and hash (its case insensitive but will still reject differing names, same with stringlenght)

this improves the performance of the leaderboard map browser quite a bit and everything else using v.patchExists
2025-12-07 15:55:25 -05:00
Alug
4302a78fb5 command.c: fix "alias" command crashing when no aliases were registered
if we dont have aliases list how do we check the next alias in the list aswell?
2025-12-07 15:23:19 -05:00
NepDisk
fec774b665 Revert "command.c: fix "alias" command crashing when no aliases were registered"
This reverts commit 0f4cf9ff8c.
2025-12-07 15:23:11 -05:00
Alug
0f4cf9ff8c command.c: fix "alias" command crashing when no aliases were registered
if we dont have aliases list how do we check the next alias in the list aswell?
2025-12-07 15:14:03 -05:00
NepDisk
d5a4ef0e52 Revert "Fix memory leak in AATree string trees"
This reverts commit d0d61e2b5128a98b24dd76b821457b604f6dedac.
2025-12-07 15:14:03 -05:00
Gustaf Alhäll
e6dc6c3262 Fix use-after-free when mobj is removed while still playing sounds 2025-12-07 15:14:03 -05:00
Gustaf Alhäll
ec656dbf28 Fix memory leak in AATree string trees 2025-12-07 15:14:03 -05:00
Indev
84ec8756b0 Use size_t there 2025-12-07 15:14:03 -05:00
Indev
bdd51b4505 Add locatelump command 2025-12-07 15:14:03 -05:00
minenice55
e644197301 Merge branch 'next' into socced-equip-style 2025-12-07 20:00:45 +01:00
NepDisk
6a7a088623 Fix 'Vote starts in' in Record Attack 2025-12-07 10:51:50 -05:00
minenice55
055f7ef4df hashes 2025-12-06 20:31:15 -05:00
minenice55
48f700f6bd Merge branch 'next' into socced-equip-style 2025-12-06 20:28:46 -05:00
minenice55
43caabf3c7 expose K_SetItemOut and K_UnsetItemOut to lua 2025-12-06 18:50:02 -05:00
Alug
fea8fe2505 Unhack Brightmap handling for Palette Rendering
Turns out the Issue was just both the palette and lighttable textures were already bound to the texture unit the brightmap will be bound to, which led the shader to just try get the brightmap data from the lighttable texture instead of the brightmap texture
2025-12-07 00:43:49 +01:00
NepDisk
4c491d8647 Revert "comment out other save game compressors for testing"
This reverts commit 479ecdba8d.
2025-12-06 17:19:29 -05:00
minenice55
9b80cd6f49 don't break ballhog lol 2025-12-06 17:10:09 -05:00
NepDisk
479ecdba8d comment out other save game compressors for testing 2025-12-06 17:04:47 -05:00
minenice55
1dde02b85a make K_SetItemOut more general 2025-12-06 17:03:39 -05:00
minenice55
6f14af9243 separate out the "equipped item" field
will need more modularization and some coding style standardization (perhaps via K_SetItemOut?)
2025-12-06 16:56:37 -05:00
minenice55
d447f7d429 Merge branch 'next' into socced-equip-style 2025-12-06 16:26:33 -05:00
NepDisk
ddd6fa6c0b Reapply "Cache emotes on registration rather then at runtime"
This reverts commit 204d476b3e.
2025-12-06 14:05:14 -05:00
NepDisk
fc55674fc4 Hash browns coming right up 2025-12-06 13:57:05 -05:00
NepDisk
b4e751de47 Shift the lightlevel for Palette rendering mode to replicate software´s limited 32 lightlevels
Thanks Alug for the suggestion
2025-12-06 13:04:13 -05:00
Alug
038184270e fix the shader order
oops
2025-12-06 12:52:30 -05:00
Alug
7b5bdc3ef3 move this 2025-12-06 12:51:11 -05:00
Alug
25fc6232ef water too ig 2025-12-06 12:49:57 -05:00
Alug
041fb80a7f make brightmaps "work" in palrender
this is fucking terrible but it somewhat works
2025-12-06 12:48:28 -05:00
NepDisk
7a5d5c7a80 Clean up 2.1 pal conversion code a lil bit in palshader 2025-12-06 11:42:34 -05:00
NepDisk
7bf9975547 Fix 2.1 palette conversion system issues with GL pal render 2025-12-06 11:33:06 -05:00
minenice55
83176e4c9f make equip style a property of the items proper
KNOWN ISSUE: rockets and eggman leave the item slot empty when equipped, should probably add a "equipped item type" field to the player struct
2025-12-06 00:33:51 -05:00
yamamama
265ac4de34 Format this better 2025-12-06 00:01:17 -05:00
yamamama
ab378d7494 Add a "List Voices" command (listvoices) 2025-12-05 19:07:45 -05:00
NepDisk
5b7699b29a Port palette rendering from SRB2
Thanks Alug for assistance porting this!

Does not currently support brightmaps
2025-12-05 19:00:23 -05:00
yamamama
ee44827f83 Update assets 2025-12-05 16:03:39 -05:00
yamamama
568949b8e5 'Join Last Server' option 2025-12-05 15:45:10 -05:00
minenice55
7f00c74e8a don't flip twice 2025-12-04 21:55:52 -05:00
minenice55
5ce35ba504 let missile throwing be tuned with dir as well
more consistent for lua that will use this
2025-12-04 21:43:19 -05:00
minenice55
02a0c6ff1a Update lua_hooklib.c 2025-12-04 17:46:18 -05:00
minenice55
f72f28976c ohhhh I'm stupid 2025-12-04 17:45:13 -05:00
NepDisk
9e21326ab9 Use namelen instead of sizeof(name) - 1 2025-12-04 15:24:32 -05:00
NepDisk
a9cbaae799 w_wad: replace lumpnumcache with unordered_map hash lookup
Holy shit, thanks Alug!!!!

This is a major performance boost with a large amount of lumps loaded compared to the barely functional lumpnumcache that was there before.
2025-12-04 15:10:50 -05:00
NepDisk
204d476b3e Revert "Cache emotes on registration rather then at runtime"
This reverts commit 732b3fb308.
2025-12-04 14:53:13 -05:00
NepDisk
c879991594 Use strlen instead of sizeof()-1 2025-12-04 14:41:28 -05:00
NepDisk
7820a02bd4 Declaration following a label is a blah blah blah 2025-12-04 10:48:30 -05:00
NepDisk
732b3fb308 Cache emotes on registration rather then at runtime 2025-12-04 10:37:45 -05:00
minenice55
e5afa5475e (non-functioning) lua overrides for K_DropHnextList
seems the hook isn't receiving the returned droptype?
2025-12-04 03:16:54 -05:00
NepDisk
bbcf2bb6f9 Cache emote patches as they are used to prevent excess calls to W_CachePatchName 2025-12-04 01:24:36 -05:00