Christoph Oelckers
a14bba3561
Check array size for overflow.
...
Since ZScript is a 32 bit VM, the largest safe value for an array's physical size is 2GB. Any larger value will be destroyed by the compiler which relies on signed 32 bit values too much.
2024-10-25 08:47:19 +02:00
Christoph Oelckers
ee6991e6d8
Do a check if a local variable exceeds the available stack space.
...
Windows stack is 1 MB so play it safe and allow 512 kb as max. stack space for a single function.
2024-10-25 07:55:17 +02:00
Rachael Alexanderson
8e16822ef9
- error out if destroying a canvas object
2024-10-22 20:51:56 -04:00
dpjudas
4fee895c2b
Remove unused struct
2024-10-22 02:30:18 +02:00
dpjudas
dfbef085e6
Group lightmap variables and put polyobj walls in a dynamic lightmap atlas
2024-10-22 02:29:12 +02:00
Magnus Norddahl
c866937262
Fix upload bug and skip upload when RT cores are available
2024-10-21 20:50:25 +02:00
Ricardo Luís Vaz Silva
d0e6bce4e6
add CVar to control footstep volume
2024-10-21 14:53:53 -03:00
dpjudas
e7c2716191
Remove old node header node from upload code
2024-10-21 02:03:09 +02:00
dpjudas
9bf6e60021
Fix TLAS to BLAS links not pointing at the root node of the BLAS
2024-10-21 01:38:23 +02:00
dpjudas
8cbef52626
Fix typo making it rebuild every BLAS if level changes
2024-10-21 00:52:33 +02:00
Magnus Norddahl
1073bcfa69
Fix TLAS bug
2024-10-21 00:09:47 +02:00
dpjudas
4a425c4493
Add support for updating the CPU-side accelstruct used for actor tracing
2024-10-20 23:54:15 +02:00
Rachael Alexanderson
7980d351b7
Merge branch '4.13' of ../gzdoom into gz4.13.1-merge
2024-10-20 10:25:15 -04:00
nashmuhandes
a45bf49616
Move no-mipmapping from actor renderflag/particle flag, to a material property in GLDEFS, where it makes more sense. The feature was introduced in the short-lived engine version of 4.13 which was deemed too broken and needed to be replaced with a newer version anyway, so might as well perform an API-breaking change at this point in time. Note that this currently only works for sprites (its primary targeted use case) -- walls, flats and models can be patched in later.
2024-10-19 18:36:34 -04:00
nashmuhandes
12c6d1361a
Move no-mipmapping from actor renderflag/particle flag, to a material property in GLDEFS, where it makes more sense. The feature was introduced in the short-lived engine version of 4.13 which was deemed too broken and needed to be replaced with a newer version anyway, so might as well perform an API-breaking change at this point in time. Note that this currently only works for sprites (its primary targeted use case) -- walls, flats and models can be patched in later.
2024-10-19 18:35:54 -04:00
Christoph Oelckers
769274656e
made FCommandLine::operator[] return a const char * and fixed two places where this triggered a compile error.
2024-10-19 08:06:53 -04:00
Christoph Oelckers
6921bf18ce
do not open resource files from non-open file readers.
2024-10-19 08:06:53 -04:00
Christoph Oelckers
e81d563cf4
made FCommandLine::operator[] return a const char * and fixed two places where this triggered a compile error.
2024-10-19 13:22:30 +02:00
Christoph Oelckers
c0bd024094
do not open resource files from non-open file readers.
2024-10-19 13:11:48 +02:00
Christoph Oelckers
bf84d8152b
do not set console mode from an uninitialized variable.
2024-10-16 17:30:21 -04:00
Magnus Norddahl
fee5e3a58b
Fix lightmap lights not updating
2024-10-16 21:38:30 +02:00
Christoph Oelckers
261881e0d7
do not set console mode from an uninitialized variable.
2024-10-16 16:54:15 +02:00
Rachael Alexanderson
2a8b629a12
- keep ENABLE_VIRTUAL_TERMINAL_PROCESSING mode in isolated console mode
2024-10-16 06:05:15 -04:00
Rachael Alexanderson
3af3b2e742
- keep ENABLE_VIRTUAL_TERMINAL_PROCESSING mode in isolated console mode
2024-10-16 06:05:05 -04:00
Rachael Alexanderson
e242330c96
- we don't need these includes anymore
2024-10-16 06:02:05 -04:00
Rachael Alexanderson
fcf65bee27
- we don't need these includes anymore
2024-10-16 06:01:34 -04:00
Rachael Alexanderson
0a9eb474cd
- fix isolated console mode (i.e. launching from explorer.exe)
2024-10-16 05:59:59 -04:00
Rachael Alexanderson
86cd212d7f
- fix isolated console mode (i.e. launching from explorer.exe)
2024-10-16 05:59:40 -04:00
Kaelan
81f2bef4ac
Further cleanup as per recommendations
2024-10-16 00:39:32 -03:00
Kaelan
b4d214a0cf
add PARAM_PROLOGUE
2024-10-16 00:39:32 -03:00
Kaelan
9d725276ac
Add manual config saving to CVar struct
...
Allows for calling to save custom cvars manually to ensure they're reliably stored. As is, the only way to ensure that cvars are saved is to safely/manually close out GZDoom, meaning if a crash occurs, that data is lost.
THis is very detrimental to mods/standalone projects that rely on CVars for storing custom data, and or data that transcends save games.
2024-10-16 00:39:32 -03:00
nashmuhandes
83b988c76e
Merge branch '4.13' of https://github.com/ZDoom/gzdoom
2024-10-16 02:31:44 +08:00
Rachael Alexanderson
9a9440a6f7
- enable console subsystem processing for Windows, enable runtime detection
2024-10-15 10:56:57 -04:00
Jan Engelhardt
0785038120
Resolve compiler warning about destructor syntax
...
gcc-14 warns:
tarray.h:927:9: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor]
927 | ~TDeletingArray<T, TT> ()
2024-10-15 10:56:13 -04:00
Rachael Alexanderson
70eb4b974d
- enable console subsystem processing for Windows, enable runtime detection
2024-10-15 10:50:24 -04:00
Cacodemon345
c603494057
Interpolate non-Burn screen wipes
2024-10-14 03:47:41 -04:00
Jan Engelhardt
8e4080f8d1
Resolve compiler warning about destructor syntax
...
gcc-14 warns:
tarray.h:927:9: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor]
927 | ~TDeletingArray<T, TT> ()
2024-10-12 12:00:32 -03:00
nashmuhandes
55940ba21d
Merge branch 'master' of https://github.com/ZDoom/gzdoom
2024-10-10 22:04:23 +08:00
Rachael Alexanderson
24792913ca
- don't spam the console log if there's math errors - mostly affects Linux/MacOS because there is no distinction from console apps or GUI apps so they put all the data in the console which can cause lag
2024-10-10 07:28:29 -04:00
Christoph Oelckers
d90de3a8a1
avoid floats in integer math.
2024-10-09 09:15:29 -04:00
Ricardo Luís Vaz Silva
c1442f1c21
clean up HWViewpointUniforms
2024-10-09 04:44:51 +02:00
Ricardo Luís Vaz Silva
159ae02a2a
fix includes
2024-10-09 04:44:51 +02:00
Ricardo Luís Vaz Silva
04ee3c335e
switch from uniform to shader keys
2024-10-09 04:44:51 +02:00
Ricardo Luís Vaz Silva
37a7907221
Allow setting light attenuation mode from mapinfo
2024-10-09 04:44:51 +02:00
nashmuhandes
58ddcd4806
Merge commit ' 6b5be653dc'
2024-10-06 21:29:38 +08:00
Christoph Oelckers
413aefb0ab
added CVAR to select the preferred MOD player and SNDINFO option to set it per song.
2024-10-05 12:37:55 +02:00
Christoph Oelckers
f0676cdf01
fixed a few memory leaks
2024-10-05 10:22:05 +02:00
Magnus Norddahl
7df842bbed
Add the shaders needed to create convoluted PBR maps
2024-10-04 02:46:07 +02:00
Christoph Oelckers
3798fd815f
the MISSILE(EVEN)MORE flags still need to be accessible by ZScript for backwards compatibility.
...
Since these do not exist anymore an internal interface to Handle/CheckDeprecatedFlags was added.
2024-10-03 12:32:09 +02:00
Magnus Norddahl
c0bbe3a43a
Hook up some more PBR stuff
2024-10-03 02:37:08 +02:00