ZZYZX
662027f429
Fix typo that was always calling SetXOffset even in SetYOffset
2022-09-20 15:08:02 -04:00
ZZYZX
a4a4e4e9f9
Fix planeval; add direct sector slope manipulation
2022-09-20 15:08:02 -04:00
ZZYZX
f049421831
Modify to have one GetVertexZ rather than IsVertexZSet / GetVertexZ
2022-09-20 15:08:02 -04:00
ZZYZX
a58acfc625
Add vertex height manipulation functions to LevelPostProcessor
2022-09-20 15:08:02 -04:00
Alison Watson
18a67cfdb2
use constexpr constructor for PARAM_COLOR_AT
2022-09-16 20:50:33 +02:00
Alison Watson
c6d6322494
use PalEntry instead of int for ParseDrawTextureTags
2022-09-16 20:50:33 +02:00
Alison Watson
fb32ff45dd
fix Screen.DrawShapeFill not properly setting renderstyle
2022-09-16 20:50:33 +02:00
Chronos Ouroboros
12995b84c7
- fixed FDynArray_Obj not performing write barriers properly.
2022-09-16 20:45:39 +02:00
nashmuhandes
7ce364bf0f
Add sv_noextraammo. When set to true, disables that weird hardcoded behavior from original Doom that gives extra ammo when picking up weapons in deathmatch
2022-09-15 20:41:16 -04:00
Christoph Oelckers
c87e87365d
- fixed: all script methods adding an object to a dynamic array must perform a write barrier.
2022-09-08 13:30:00 +02:00
Christoph Oelckers
175c91308a
- move BobSin to game side.
2022-09-04 09:01:57 +02:00
Christoph Oelckers
8cba80a2cd
Revert "- fixed allocation size when constructing a string from a file system entry."
...
This reverts commit 513d8cea8d
.
This change broke voxel loading and possibly other things as well
2022-09-04 08:58:45 +02:00
inkoalawetrust
664ccf8a7c
- fix bug with 06ee21c51d
- if (!pl) should always return false
2022-09-03 19:06:46 -04:00
Rachael Alexanderson
ca6a2152b9
- add freezetics actor property
2022-09-03 17:58:16 -04:00
Rachael Alexanderson
06ee21c51d
- allow notification of actor goal is reached inside of a SECF_NOATTACK sector
2022-09-03 17:37:48 -04:00
Emile Belanger
ba83879e99
GLES2: Fix anistropic filtering
2022-08-30 18:33:52 -04:00
Christoph Oelckers
c7e425f759
- make TAngle::Degrees() constexpr.
2022-08-26 18:32:23 +02:00
Christoph Oelckers
7ad09c7a77
- fixed sky cap color handling
...
Backported from Raze
2022-08-26 18:17:02 +02:00
Christoph Oelckers
ed5287ef23
- added Q16 and Build angle converters to TAngle
...
To have full coverage. Q16 is what ACS uses and Build angles are needed in Raze.
2022-08-26 18:09:39 +02:00
Christoph Oelckers
4032576519
- blocked off direct access to TAngle’s internal storage.
2022-08-26 18:09:29 +02:00
Christoph Oelckers
3d2578820b
- block direct comparisons of TAngle with floats
2022-08-26 18:01:52 +02:00
Christoph Oelckers
f0fbdba593
- disable implicit conversions from float to TAngle
2022-08-26 18:01:26 +02:00
Rachael Alexanderson
8468f712e0
- fix arti teleport and arti teleother not respecting useplayerstartz mapflag
2022-08-26 04:11:29 -04:00
Marisa the Magician
8c0ad50db3
UE1 models now handle frame index -1 properly.
2022-08-24 19:56:07 +02:00
Yarn366
f27acfa6b2
Add support for the GOG releases of the Unity versions of Doom and Doom II.
2022-08-19 08:00:53 +02:00
Rachael Alexanderson
0eae1b9be2
- change the Linux/BSD version of system
call to std::system
2022-08-18 00:42:27 -04:00
Christoph Oelckers
4bdb8edea6
- removed redundant argument.
2022-08-18 00:06:40 +02:00
Christoph Oelckers
03c725c0da
- use NSFileManager on macOS to handle the current directory.
2022-08-17 23:43:56 +02:00
Christoph Oelckers
532a493752
- get_current_dir_name apparently does not exist on macOS
2022-08-17 22:57:30 +02:00
Christoph Oelckers
7f3c09c918
- use get_current_dir_name for I_GetCWD on POSIX.
2022-08-17 22:51:39 +02:00
Rachael Alexanderson
e261132db0
- use char* get_current_dir_name() in Mac/Linux to save the cwd in the shell open function
2022-08-17 16:32:09 -04:00
Christoph Oelckers
a2369b945c
- fixed custom obituary lookup.
2022-08-17 21:35:59 +02:00
Christoph Oelckers
1940527dba
- carry over the tiling flag from the finished to the entering screen
2022-08-17 21:28:52 +02:00
Ed the Bat
88674b5ea0
Prevent Keyconf from adding duplicate playerclass
2022-08-17 21:12:10 +02:00
Christoph Oelckers
513d8cea8d
- fixed allocation size when constructing a string from a file system entry.
...
The internal allocator already added space for the terminazing \0, so the string's size was one character too large.
2022-08-17 21:10:15 +02:00
Christoph Oelckers
8d3c1adf05
- do not use POSIX directory functions in common code.
...
For Windows these need to redirect to Unicode system functions to properly handle paths not representable in 8 bit encodings.
2022-08-17 10:02:25 +02:00
Christoph Oelckers
c5f4967871
- cleanup of Windows's I_OpenShell* functions
...
* do not use deprecated library features (wstring_convert was deorecated in C++17) - instead use the existing WideString utility.
* do proper calculation of the current directory's path length.
* remove the mostly redundant I_OpenShellFile function and instead use ExtractFilePath to get the config's path.
2022-08-17 00:31:22 +02:00
Rachael Alexanderson
64824430fa
- make shell folder functions unicode aware
2022-08-16 22:10:09 -04:00
Rachael Alexanderson
ee132372d8
- patch for this note: 03d76027cf (commitcomment-81265953)
2022-08-15 21:35:36 -04:00
Rachael Alexanderson
a9cadd345d
- change the way posix folders are opened - fixes issue #1707
2022-08-14 18:38:20 -04:00
Rachael Alexanderson
03d76027cf
- fix issue #1708 - respect user preferences when specifying custom save/config/screenshot paths
2022-08-14 15:03:20 -04:00
Rachael Alexanderson
dd07f6513f
- encapsulate folder/file names in quotes on Windows too
2022-08-14 10:38:15 -04:00
Rachael Alexanderson
259a8e0f74
- fixed: encapsulate folders for shell commands in quotes for Linux/Mac
2022-08-12 23:20:30 -04:00
Christoph Oelckers
e27e3453f9
- fixed obituary string generation
2022-08-12 21:24:09 +02:00
Yarn366
6489f5ebf0
Add detection for the Final Doom WADs that were recently added to the Steam version of Doom II.
...
Also add detection for the Steam Unity versions of Doom and Doom II to posix/i_steam.cpp, which was apparently missed by whoever added it to the win32 version.
2022-08-12 11:39:41 +02:00
Christoph Oelckers
1b43575580
- new method to define obituaries without modifying actors.
...
Adding strings to the language file named OBITUARY_{classname}_{damagetype} or OBITUARY_{classname} will now be detected automatically and override all other definitions.
This not only allows damage type aware obituaries but also makes it easier to retroactively add them to mods that have none defined.
2022-08-11 23:46:09 +02:00
Christoph Oelckers
c89ae6358e
- Backend update from Raze, mostly maintenance changes without new functionality.
2022-08-11 22:51:19 +02:00
Christoph Oelckers
283c5d688c
Merge branch 'master' of https://github.com/coelckers/gzdoom
2022-08-11 22:39:53 +02:00
Rachael Alexanderson
8e50c59301
- remove latch flag from sv_cheats
2022-08-11 15:43:22 -04:00
nashmuhandes
50d16c75d9
Add corona actor
2022-08-11 20:38:24 +08:00
Rachael Alexanderson
04a6fa321b
- use FString instead of std::string in the Windows shell functions
2022-08-10 18:13:49 -04:00
Rachael Alexanderson
f2df781b76
- add menu entries
2022-08-10 13:10:13 -04:00
Rachael Alexanderson
82d0376520
- add openscreenshots
opensaves
and openconfig
console commands on Windows and Linux and Mac
2022-08-10 13:00:33 -04:00
Christoph Oelckers
4710a40fb5
- reapply PR 1512 which was accidentally deleted
2022-08-09 10:48:00 +02:00
Christoph Oelckers
735c2a9545
- pass clip rect as pointer to F2DDrawer::AddLine.
2022-08-05 21:13:47 +02:00
Marisa the Magician
931211b9db
Export FindLumpFullName to ZScript.
2022-08-05 20:25:02 +02:00
Marisa Heit
4c6d0e4209
Better error message for unknown nested types
2022-08-04 07:42:46 +02:00
Marisa Heit
66460bfeb8
Add support for nested user types
...
The grammar already understood these constructs. Now the compiler does too.
2022-08-04 07:42:46 +02:00
Christoph Oelckers
ef0e9c025e
- fixed comparison checks.
2022-08-03 10:58:37 +02:00
Christoph Oelckers
3563c99ead
- made adjustments for proper int type promotion to allow internal ZScript to compile with it on.
...
* Emit a warning when relational comparisons are made between signed and unsigned ints.
* Handle shift operators so that they do not fail for constant definitions.
* changed return type of Array::Size() to signed int as most code out there is using it this way and would otherwise drown in warnings.
* fixed a few deprecation warnings.
2022-08-03 10:26:29 +02:00
Christoph Oelckers
388a5cb481
- ZScript: fixed integer type promotion for shift operator
...
* the first operand must never be sign-changed.
* the second operand should always be made unsigned. Shift by negative values is undefined and may produce undefined behavior on some systems.
2022-08-03 09:03:03 +02:00
Christoph Oelckers
8eabaf61c9
- version-restrict int to uint promotion.
...
Some mods depend on this not happening.
2022-08-03 08:45:37 +02:00
Christoph Oelckers
5cee2b5803
- fixed: The compile context for constant evaluation did not initialize its Version member.
2022-08-03 08:44:38 +02:00
Marisa Heit
f7f9746a0f
Don't throw away unsignedness when passing unsigned constants to the codegen
2022-08-02 07:48:21 +02:00
Marisa Heit
7ce29fe855
Add signed->unsigned promotion for binary operators
...
The C-style rules for integer promotion are that when you have a signed int and an unsigned int, if you can't promote to a wider type, then the signed type is promoted to an unsigned type.
2022-08-02 07:48:21 +02:00
Christoph Oelckers
15c5728f01
- fixes and improvements for survey code.
...
Check for Windows on ARM and do proper checks for GLES.
32 bit checks are still retained to catch non-official builds that disable the compile check.
2022-07-31 17:49:21 +02:00
Christoph Oelckers
4422f9079c
- fix menu commands with semicolon separated commands
...
C_DoCommand only executes one command, to do full processing AddCommandString is needed.
2022-07-29 08:38:34 +02:00
Christoph Oelckers
ee2c775bd8
- fix last commit
2022-07-29 08:36:26 +02:00
Christoph Oelckers
5bae588f80
- get rid of M_Malloc call in WriteSavePic
...
Use TArray instead
2022-07-29 08:25:55 +02:00
Marisa Heit
b9501a7291
Fix definition order of ZScript structs
...
Do a first pass over the Structs array in CompileAllFields() to reorder them such that if a struct uses other structs, those structs will be resolved first.
2022-07-29 08:17:33 +02:00
Magnus Norddahl
742ae8c907
Fix viewpoint buffer not getting cleared when in the menus
2022-07-28 13:52:09 +02:00
Christoph Oelckers
aae85a1b91
- backported KDE detection from Raze.
2022-07-28 10:52:26 +02:00
Christoph Oelckers
5a63044141
- Project fix for Softpoly removal.
2022-07-28 10:51:55 +02:00
Christoph Oelckers
93e934c8d0
- removed the Softpoly backend.
...
Its only relevant use case has been to use the software renderer on hardware not capable of OpenGL 3.3, but a large chunk of that can now be serviced with GLES.
In addition it has ceased further development and has not received any of the recent 2D render features which further reduces its viability.
2022-07-28 10:31:56 +02:00
Marisa the Magician
9eb8d65cb1
Fix another incorrect mapping of texture indices for UE1 models.
2022-07-27 10:21:29 +02:00
Shiny Metagross
83077b6f95
Update models.cpp
...
- Removed a useless bool
- Fixed an issue with model containers having less models than their smf total models amount using the smaller amount
2022-07-27 07:38:50 +02:00
Magnus Norddahl
e2778ba442
Move TexMan.GetCanvas and GetTextureCanvas to common
2022-07-25 18:50:16 +02:00
Magnus Norddahl
753822359e
Add support for multiple 2d drawer viewpoints in the same frame
2022-07-25 18:50:16 +02:00
Magnus Norddahl
6c3fd3cc4d
Fix softpoly null pointer crash
2022-07-25 18:50:16 +02:00
Magnus Norddahl
fe3751a502
Fix renderdoc error message about not all textures getting bound
2022-07-25 18:50:16 +02:00
Magnus Norddahl
b8569fa29f
Fix GC shutdown crash due to canvas objects not getting GC'ed at the end
...
Fix typo in Draw2D and add support for specifying the viewport size directly
2022-07-25 18:50:16 +02:00
Magnus Norddahl
6137ea12d1
Fix typo
2022-07-25 18:50:16 +02:00
Magnus Norddahl
bb503950df
Add canvastexture definition to animdefs.
...
Split canvas texture rendering from camera texture rendering.
2022-07-25 18:50:16 +02:00
Magnus Norddahl
aa083604e1
Fix variable arg bindings
...
Always clear the drawer
2022-07-25 18:50:16 +02:00
Magnus Norddahl
0049fea8d6
Add missing DrawText binding
2022-07-25 18:50:16 +02:00
Magnus Norddahl
4f0b02b396
Add a 2d drawer to canvas textures
2022-07-25 18:50:16 +02:00
Marisa the Magician
cd20d707d4
Fix incorrect mapping of texture indices for UE1 models.
2022-07-25 13:52:46 +02:00
nashmuhandes
351a4c9a5a
Added PitchFromMomentum, UseActorPitch and UseActorRoll to VOXELDEF. Behaves exactly like their 3D model counterparts. Hardware renderer only.
2022-07-25 08:06:44 +02:00
Ricardo LuÃs Vaz Silva
12660b0015
Add special case for relative includes from top-level files
2022-07-24 09:05:16 +02:00
Rachael Alexanderson
27d4fc28db
- implement fix as suggested by user 'axet' fixes issue #1621
2022-07-23 19:00:59 -04:00
Christoph Oelckers
9875850c19
- got rid of the state variables in the model class entirely.
...
This is *not* the right way to reduce function parameter count. The data in question is far easier evaluated at the calling site and passed as a parameter.
2022-07-23 10:35:01 +02:00
Christoph Oelckers
76c8214d67
- fixed destructive logic and memory allocation issues in RenderFrameModels.
...
This completely avoids modification of the model data, instead using local variables.
2022-07-23 10:10:15 +02:00
Shiny Metagross
9ab6557822
A_ChangeModel now has generatorIndex
...
- To really take advantage of this function, I thought it would be useful to be able to add additional models if the user wants to. Let's say you got a player model at index 0. Your gun model has the same frames, but you don't want to duplicate the modeldef data. With generator index, you don't need to duplicate the data, just tell generator index to clone frame data from index 0.
- Implemented a little something to check if a negative skin or model index were passed, and prevent modders from pulling that off.
2022-07-22 17:11:59 +02:00
Shiny Metagross
fa6dfdf64c
Update p_actionfunctions.cpp
...
Woah, this didn't work with custom inventory chains!
2022-07-22 17:11:59 +02:00
Shiny Metagross
69ee1eb0a2
Surfaceskin modification
...
- Made it so when rendering a model, it clones an smf to use so that data isn't overwritten
- Reimplemented the skin index property. This changes the behavior of this index if CMDL_USESURFACESKIN is activated
2022-07-22 17:11:59 +02:00
Shiny Metagross
ec3d81a34f
More fixes
...
- Let's fill the holes of serialized data so it can properly be removed instead of leaving undefined behavior behind.
- Added CMDL_HIDEMODEL flag. This makes a model index invisible.
2022-07-22 17:11:59 +02:00
Shiny Metagross
11f342795b
I did a no no
...
- This should fix it
2022-07-22 17:11:59 +02:00
Shiny Metagross
9805851bd8
Update p_actionfunctions.cpp
...
Uhh, maybe this is why mac builds failed
2022-07-22 17:11:59 +02:00
Shiny Metagross
9f2c7c850d
Update p_actionfunctions.cpp
...
- Let's fix some of the compile warnings
- We don't want to include models that were already parsed by modelDef, or already in savedModelFiles
2022-07-22 17:11:59 +02:00
Shiny Metagross
6d00e4a3f3
Finished serializing
...
- Implemented an FString TArray which goes into save files that saves a model file and path, and when the game is loaded, spits back out the model to be Loaded when loading a save file
2022-07-22 17:11:59 +02:00
Shiny Metagross
5b8789977a
Another fix, most serialization is working
...
- Changed some logic when giving an actor that doesn't have a modeldef a modeldef to make sure it knows it doesn't have one when cleared
- Fixed the serialization for modelData. Only problem now is that I was right about needing to push the models on load
2022-07-22 17:11:59 +02:00
Shiny Metagross
83a23c6525
Other updates
...
- Moved modelDef to modelData
- Replaced TArray.Deletes with TArray.Pop
- Made a few other optimizations in other places in the action function
2022-07-22 17:11:59 +02:00
Shiny Metagross
e827e9b086
TArrays to TObjPtr
...
- Made the 2 TArrays into a class called DActorModelData.
- Removed the skinindex and now just uses one index
- Replaced a bunch of nullptr for modelDef checking with NAME_None
- Added some garbage cleanup to A_ChangeModel itself, as well as removing memory of modelData that is no longer needed
- Attempted serialize code, putting up for review
2022-07-22 17:11:59 +02:00
Shiny Metagross
c304a8f974
Changed static arrays to TArrays
...
- Made the models and skins arrays TArrays
- The issue I described with models not always reverting to default properly was caused by the fact I was unintentionally overwriting smf data. Now intermediate TArrays store the data before the loop instead of overwriting anything
2022-07-22 17:11:59 +02:00
Shiny Metagross
5abadd3aab
A_ChangeModeldef
...
-Added A_ChangeModelDef
A_ChangeModel(modeldef, modelpath, model, modelindex, skinpath, skin, skinid, flags)
This can change the modeldef, model and skins of an actor.
Currently, modelindex and skinindex accept indices from 0-15.
An actor MUST have a modeldef in order to use this function, either defined from modeldef, or given one through the modeldef parameter. You can pass "" to use the same modeldef. Likewise, passing "" for model or skin will just revert to the default model.
Available flags:
CMDL_WEAPONTOPLAYER - If used on a weapon, this instead change's the model on the player instead.
One issue I am aware of right now is that clearing a model by "" sort of works but is buggy. For now you can just manually set the model back using the names explicitly. However, I am stumped and I think getting more eyes on it would help.
2022-07-22 17:11:59 +02:00
Christoph Oelckers
e649357d4e
- fixed return values of FTextureAnimator::AddAnim
2022-07-22 08:35:56 +02:00
Rachael Alexanderson
f4f701a45c
- add longsavemessages to simple menu. set longsavemessages default to false.
2022-07-21 13:22:52 -04:00
Christoph Oelckers
d2454d4b3b
- DirectInput cleanup
...
Removing ancient code that's only useful on pre-XP OSs.
2022-07-20 14:41:06 +02:00
Christoph Oelckers
f13e95ccbe
- also allocate FDoorAnimation's frame table from the texture manager's memory arena.
...
The same lifetime rules as for the regular animations apply here.
2022-07-17 10:22:48 +02:00
Christoph Oelckers
6d635ce715
- optimized storage for animation definitions.
...
Instead of allocating everything on the heap as single blocks, use a value TArray and allocate the frame arrays from the texture manager's memory arena, since lifetime of the data is identical.
Most importantly this avoids using a variable size array at the end of the struct.
2022-07-17 10:15:09 +02:00
Magnus Norddahl
89f5428a9a
Fixes vulkan crash when multisampling is enabled
2022-07-16 17:51:44 +02:00
Christoph Oelckers
e4485b01f8
- removed redundant extern declarations from platform code.
2022-07-16 15:12:06 +02:00
Omar Polo
0f0b4b7620
fix gzdoom.pk3 not found error
...
Move the initialization before BaseFileSearch is called, otherwise
GameConfig is used not initialized and it doesn't find the gzdoom.pk3
file.
GameConfig used uninitalized was spotted by @LoneFox78.
2022-07-16 15:04:13 +02:00
Gutawer
937c22ff14
- add a method for filling a shape2d instead of using a texture ( #1661 )
...
Co-authored-by: Christoph Oelckers <coelckers@users.noreply.github.com>
2022-07-16 14:57:22 +02:00
Gutawer
ee0d90a983
- add stencil buffer support for 2d drawing ( #1660 )
...
Co-authored-by: Christoph Oelckers <coelckers@users.noreply.github.com>
2022-07-16 14:56:28 +02:00
Gutawer
1e27fac288
- add a system for setting all of 2D drawing's transform, not just shapes
2022-07-16 14:53:07 +02:00
nashmuhandes
c6ae73d6d2
- Expose ConsoleState to scripts
...
- Make ConsoleState uint8_t sized
2022-07-16 14:38:47 +02:00
Magnus Norddahl
69778667aa
Minor cleanup of some vulkan rtx code
2022-07-16 08:55:57 +02:00
Christoph Oelckers
0e90098de8
- rewrote Windows console code for Windows 10's new terminal.
...
This allows dumping a lot of shit code using deprecated Windows functionality and bringing the code in line with Microsoft's roadmap for terminal/console functionality.
Note that this will cause garbled output of non-ASCII characters on Windows 7 and 8.1, but proper handling on these declining systems is of far lesser importance than future-proofing the feature.
2022-07-15 13:04:02 +02:00
Christoph Oelckers
595975fcc7
- did a test compile as C++20 and fixed all warnings that got emitted.
2022-07-15 09:17:50 +02:00
Kevin Caccamo
ffd8b5ed5a
Address Graf's comment
2022-07-15 07:43:57 +02:00
Kevin Caccamo
a89d32c850
Attempt to fix #1654
2022-07-15 07:43:57 +02:00
Christoph Oelckers
2c7761926e
- removed volatile type punning for clipping against line portals.
...
This now uses a common base for line_t and HWLinePortal.
2022-07-14 10:39:11 +02:00
Christoph Oelckers
fbd604b725
- fixed handling of *dive and *surface sounds.
...
The old water level needs to be retrieved before handling splashes, because SplashCheck already updates the waterlevel.
This was swapped around by a recent PR.
2022-07-14 08:13:54 +02:00
Rachael Alexanderson
e3238cd5b7
- always print GZDoom version in the startup log
2022-07-13 14:16:41 -04:00
Ricardo LuÃs Vaz Silva
365131e1e3
rename PrintString to PrintfEx and make it a vararg function
2022-07-11 19:35:51 +02:00
Ricardo LuÃs Vaz Silva
03c8da8a44
Expose Print Flags to ZScript
2022-07-11 19:35:51 +02:00
Christoph Oelckers
aae1d1439a
- reverted AActor::scale to a DVector2.
...
This was causing comparison precision issues with existing script code.
2022-07-11 12:20:34 +02:00
Emile Belanger
edc8204a61
If the system uses very high memory addresses this error will be hit
2022-07-10 22:26:57 +02:00
Rachael Alexanderson
9050ded1c2
- version.h update
2022-07-07 08:27:33 -04:00
Christoph Oelckers
7847a55d67
- do not include game specific stuff in the backend.
2022-07-02 10:26:17 +02:00
Christoph Oelckers
9002cdb61d
- fixed bad use of local variable.
2022-07-02 10:24:51 +02:00
Christoph Oelckers
35f8aab6bf
- fixed names for A_PlaySoundEx
...
These need to be contiguous because the implementation depends on it.
2022-06-30 21:45:59 +02:00
nashmuhandes
8da4f2a212
ZDRay UDMF key update (per-surface sampling distance https://github.com/dpjudas/ZDRay/pull/36 )
2022-06-29 09:12:18 +02:00
Christoph Oelckers
44a15bebea
- fixed background tiling for summary screen.
...
Since the background object gets recycled it must clear this flag before loading a new background.
2022-06-29 08:36:01 +02:00
RaveYard
9a083d2d13
Fix FVector to Vector comparison
2022-06-24 21:38:14 +02:00
alexey.lysiuk
59458cf463
- fixed compilation without JIT
...
src/common/scripting/vm/vmframe.cpp:674:16: error: call to 'JitCaptureStackTrace' is ambiguous
2022-06-23 13:26:36 +03:00
RaveYard
4c588077c2
Fix FVector incompatible operands errors
2022-06-23 10:54:31 +02:00
Christoph Oelckers
2d10ad9d2d
- removed incorrect assert.
...
This may fail if a narrow data type is negated.
2022-06-23 10:43:43 +02:00
Christoph Oelckers
124d71a7be
- let the "abort" button on the network pane of the startup screen do a hard exit on Windows.
...
This merely posted a quit message which did not get properly processed and let the game run into other code with incompletely set up data.
2022-06-23 09:35:45 +02:00
Sally Coolatta
67127e4cce
Bugfix for retro software mode mirrors not working
2022-06-23 07:47:04 +02:00
Christoph Oelckers
8c244f6f85
- use static_assert to make 32 bit builds fail.
2022-06-22 11:11:29 +02:00
Christoph Oelckers
aaf9618e61
- make sure ticdup is initialized.
...
Apparently sometimes it still does not happen.
2022-06-22 10:30:09 +02:00
nashmuhandes
593627f049
Add +ONLYVISIBLEINMIRRORS and +INVISIBLEINMIRRORS actor flags. The former makes the actor only visible in reflections, while the latter makes the actor not cast reflections in mirrors.
2022-06-22 09:36:04 +02:00
Christoph Oelckers
e3d7afa2d5
- added missing return
2022-06-22 09:26:53 +02:00
Magnus Norddahl
a0259e8e00
Hide experimental ray query behind vk_raytrace
2022-06-22 07:55:19 +02:00
Magnus Norddahl
ed134c9b19
Improve the builder syntax so that fewer temp variables are required to build vulkan objects
2022-06-22 07:55:19 +02:00
Magnus Norddahl
7fc579c8b2
Add some helpers
2022-06-22 07:55:19 +02:00
Magnus Norddahl
c7fe3de4b0
Avoid creating new descriptor pools every frame
2022-06-22 07:55:19 +02:00
Magnus Norddahl
5aa0fb536f
Only define SUPPORTS_RAYTRACING if it was detected
2022-06-22 07:55:19 +02:00
Magnus Norddahl
e0907f62d5
Use a black lightmap texture rather than an undefined one (NV and AMD differ on the contents of undefined textures)
2022-06-22 07:55:19 +02:00
Magnus Norddahl
f1775ee64b
Fix null pointer crash if shader fails to compile during startup
2022-06-22 07:55:19 +02:00
Magnus Norddahl
5446e37874
Add debug names to some buffers
2022-06-22 07:55:19 +02:00
Magnus Norddahl
5cc21c5a4a
Upgrade glslang to 11.10.0
2022-06-22 07:55:19 +02:00
Magnus Norddahl
32d059e432
Tell the debug layer what the name of the shader is
...
Always bind both buffer descriptor sets
2022-06-22 07:55:19 +02:00
Magnus Norddahl
821bd3b460
Adjust some init/deinit code and rename some things
2022-06-22 07:55:19 +02:00
Magnus Norddahl
4644221454
Make sure everything has finished rendering or uploading before changing the render buffers
2022-06-22 07:55:19 +02:00
Magnus Norddahl
24bf0c685c
Remove GetVulkanFrameBuffer() so nobody is tempted to call it in the future
2022-06-22 07:55:19 +02:00
Magnus Norddahl
1c4798f059
Move lightmap and shadowmap textures to VkTextureManager
2022-06-22 07:55:19 +02:00
Magnus Norddahl
3d43819a3f
Move null texture to the texture manager
2022-06-22 07:55:19 +02:00
Magnus Norddahl
63d40ffbf9
Avoiding adding empty objects to the delete list
2022-06-22 07:55:19 +02:00
Magnus Norddahl
ba88303527
Move more code into the correct managers
2022-06-22 07:55:19 +02:00
Magnus Norddahl
69cfadf411
Manage buffers in VkBufferManager
2022-06-22 07:55:19 +02:00
Magnus Norddahl
ef802b85e7
Manage postprocess texture lifetimes in the same way as for hw textures
2022-06-22 07:55:19 +02:00
Magnus Norddahl
b3316fbe21
Let VkTextureManager manage the VkHardwareTexture resources
...
Let VkDescriptorSetManager manage the VkMaterial resources
Add the resources to the delete list instead of freeing them immediately as the backend cannot rely on exactly when the hardware renderer decides to destroy them
2022-06-22 07:55:19 +02:00
Magnus Norddahl
298c023b1d
Add buffer and texture managers for handling object lifetimes
2022-06-22 07:55:19 +02:00
Magnus Norddahl
8004532cba
Begin detaching internal vulkan object lifetimes from the hardware renderer layer
2022-06-22 07:55:19 +02:00
Magnus Norddahl
8ebad1003b
Split postprocess part into more files
2022-06-22 07:55:19 +02:00
Magnus Norddahl
ecd2dc6300
Move command buffers out of vk_framebuffer and into its own manager class
2022-06-22 07:55:19 +02:00
Magnus Norddahl
a4e82766d7
Move inlined builder functions to the cpp file and remove FixedVector (none of it is on the critical path anyway)
2022-06-22 07:55:19 +02:00
Magnus Norddahl
3f28a7e5e4
Add some more pipeline barriers hoping it will make any difference to Nvidia drivers crashing on a worker thread (yay, nvidia!)
2022-06-22 07:55:19 +02:00
Magnus Norddahl
8517c9713a
Move descriptor sets from VkRenderPassManager into a new class called VkDescriptorSetManager
2022-06-22 07:55:19 +02:00
Magnus Norddahl
e26fb04adf
Some minor bug fixes
2022-06-22 07:55:19 +02:00
Magnus Norddahl
138d3e86ce
Fix null pointer crash when writing debug messages
2022-06-22 07:55:19 +02:00
Magnus Norddahl
0c1aab074c
Hook up the acceleration structure to the shader and start shooting some rays!
2022-06-22 07:55:19 +02:00
Magnus Norddahl
e08965b0b3
Improve vk_debug output a lot by throwing away the useless parts of the message and limit the callstack to the first 5 gzdoom calls
2022-06-22 07:55:19 +02:00
Magnus Norddahl
0c90a72c66
Upgrade SPV and GLSL version if using Vulkan 1.2
2022-06-22 07:55:19 +02:00
Magnus Norddahl
97073410c4
Upload acceleration structures for the level mesh
2022-06-22 07:55:19 +02:00
Magnus Norddahl
bf1732904f
Enable vulkan 1.2 and ray tracing extensions, if available
2022-06-22 07:55:19 +02:00
Magnus Norddahl
c6416a2afe
Update volk to a newer version
2022-06-22 07:55:19 +02:00
Christoph Oelckers
d5888dfa0a
- validate fountaincolor before using it.
2022-06-21 19:47:08 +02:00
Jan Engelhardt
3213f046c2
Resolve build failure on i686-linux
...
gcc had to say:
gzdoom-g4.8.0/src/common/engine/stats.h:83:13: error: 'CPU' was not declared in this scope
83 | if (CPU.bRDTSC)
2022-06-19 07:53:21 +02:00
alexey.lysiuk
cd998edf86
- added detection of macOS Ventura
2022-06-18 13:14:48 +03:00
Christoph Oelckers
14fc2a011e
- ZScript: don't allow multiple assignment syntax with only one element.
2022-06-16 10:47:11 +02:00
Christoph Oelckers
316b9305a2
- fixed type of third argument of MBF21's MonsterMeleeAttack function.
...
This is a sound, not an int.
2022-06-16 10:31:39 +02:00
Christoph Oelckers
de4627a477
- added an override for NOTAUTOAIMED flag when using P_AimLineAttack for informative CCMDs.
...
The flag is explicitly blocked for script use.
2022-06-16 10:07:22 +02:00
Christoph Oelckers
74866c28ce
- allow taking screenshots in cutscenes.
2022-06-16 09:51:09 +02:00
Christoph Oelckers
18115ef455
- fixed JIT target function for GetTimeFrac.
...
I_GetTimeFrac has default parameters so it cannot be used directly.
2022-06-16 09:34:40 +02:00
Christoph Oelckers
c5eec7b8bb
- fixed: For cutscenes the alternative clean scaling factors need to be activated.
...
This setting was at odds with the internals of the intermission and summary screen handlers.
2022-06-16 09:18:27 +02:00
Christoph Oelckers
e62fe65d00
- silenced a few more float conversion warnings.
2022-06-16 08:21:27 +02:00
Christoph Oelckers
355219d614
- fixed several scale related floating point conversion warnings.
2022-06-15 22:15:36 +02:00
Christoph Oelckers
431c47c957
- fixed setup of ready state with Dehacked.
...
This needs to emulate the hard coded chainsaw sound when weapon states get reassigned.
2022-06-15 22:04:01 +02:00
nashmuhandes
972e9cba09
Standardize and finalize the naming conventions for the new UDMF keys to everything lightmap-related to use an "lm_" prefix.
2022-06-15 20:20:16 +02:00
nashmuhandes
004a962ed5
Actually parse the new ZDRayInfo keys
2022-06-15 13:48:57 +02:00
nashmuhandes
ac5e969759
Update ZDRay keywords
2022-06-15 11:30:21 +02:00
Magnus Norddahl
34f1b23c3f
Fix the discolored sky bug
2022-06-13 21:34:30 -04:00
Christoph Oelckers
be2fe0f304
- check point pushers/pullers by inheritance, not absiolute match
2022-06-13 00:08:34 +02:00
Christoph Oelckers
851a211be2
- fixed some warnings
2022-06-13 00:08:08 +02:00
RaveYard
519f9f4298
Fix JIT pointer offsets
2022-06-12 17:57:44 +02:00
RaveYard
f9bf6f9311
Implement FVector ZScript for Actor Scale
2022-06-12 17:57:44 +02:00