Christoph Oelckers
77d74a11d1
- removed most templates.h includes.
2021-10-30 10:49:12 +02:00
Christoph Oelckers
eb69bbcae0
- replaced MIN/MAX in common code.
2021-10-30 10:46:17 +02:00
Christoph Oelckers
75c8e0af7c
- use the standard library's 'clamp' function instead of our homegrown variant.
2021-10-30 10:21:50 +02:00
Christoph Oelckers
cc617d9085
- Backend update from Raze.
...
Mostly warning fixes reported by Clang, plus GLES update.
2021-10-30 09:29:21 +02:00
Magnus Norddahl
8e59ed754e
Fix vulkan validation errors for wrong image transitions and buffers used after destroyed
2021-10-29 22:38:18 +02:00
nashmuhandes
c2b3600981
Add a render style parameter to Screen.Dim
2021-10-29 21:08:32 +02:00
Magnus Norddahl
d853961a83
Fix vulkan buffers not using the stream usage for the 2d drawer
...
Add BufferUsageType enum to clarify what kind of usage is expected by the buffer allocated by SetData
2021-10-26 22:43:38 -04:00
alexey.lysiuk
8e1dd7d2c5
- removed obsolete code from Cocoa backend
2021-10-23 13:46:59 +03:00
nashmuhandes
b657478f6f
Merge branch 'master' of https://github.com/coelckers/gzdoom into lightmaps2
2021-10-21 20:56:36 +08:00
Rachael Alexanderson
2420371c46
- change cvars gl_custompost
and gl_customshader
to archive and save to .ini since there are uses for these shaders beyond mere debugging.
2021-10-20 11:23:05 -04:00
nashmuhandes
5c20a5918e
Merge branch 'master' of https://github.com/nashmuhandes/gzdoom into lightmaps2
2021-10-20 21:59:37 +08:00
Rachael Alexanderson
bb44f3dcd9
- add cvar r_skipmats
- speeds up rendering on slower cards for mods that use a lot of specularity/pbr, effective on both the opengl and vulkan backends
2021-10-20 06:49:45 -04:00
nashmuhandes
ab3146054b
Fixed: SBar_DrawTextureRotated was missing the angle parameter
2021-10-19 11:44:34 +02:00
alexey.lysiuk
8ec6c21195
- fixed deprecation warnings in Cocoa backend
2021-10-18 11:03:34 +03:00
alexey.lysiuk
b85282fe5e
- disabled nullability warnings in Vulkan memory allocator
2021-10-18 10:27:03 +03:00
alexey.lysiuk
e0cdb1e32e
- removed NoVirtualRefCountedBase class
2021-10-18 10:26:21 +03:00
alexey.lysiuk
94b77de5ed
- fixed Vulkan memory allocator initialization
2021-10-18 09:50:33 +03:00
alexey.lysiuk
df2d07e0d5
- update Vulkan headers to the latest released SDK
...
https://github.com/KhronosGroup/Vulkan-Headers/releases/tag/sdk-1.2.189.1
This fixes missing `VK_ERROR_UNKNOWN` definition
2021-10-18 09:47:44 +03:00
alexey.lysiuk
80b8ab8fa2
- add missing vk_mem_alloc.natvis
...
1b0bd18053/src/vk_mem_alloc.natvis
2021-10-18 09:44:47 +03:00
Christoph Oelckers
eb9f752db8
- updated vk_mem_alloc.
2021-10-17 09:12:03 +02:00
Magnus Norddahl
6a804cd4c7
Fix lightmaps got applied to model meshes
2021-10-14 06:11:54 +02:00
nashmuhandes
635a279186
Merge branch 'master' of https://github.com/coelckers/gzdoom into lightmaps2
2021-10-08 16:26:26 +08:00
Magnus Norddahl
a77dfae0bc
Fix out of pool memory error
2021-10-08 10:15:01 +02:00
Christoph Oelckers
19aac25f19
- fixed some imprecisions in font luminosity calculation.
...
This was still going through the palette which could result in off-by-one errors.
2021-10-07 00:13:34 +02:00
Christoph Oelckers
60bf096912
- fixed palette initialization for single lump fonts (FON2 and BMF)
...
The bad increment was due to the palette being a byte array in older versions.
2021-10-06 20:30:29 +02:00
nashmuhandes
52004f36b4
Add sunlight actor for ZDRay
2021-10-05 18:09:00 +08:00
nashmuhandes
d35cd9549f
Merge branch 'master' of https://github.com/coelckers/gzdoom into lightmaps2
2021-10-05 12:53:05 +08:00
Christoph Oelckers
6e9e75c02c
- disallow changing the line spacing for option menus.
...
With the VGA font this makes no sense anymore.
2021-10-03 15:54:08 +02:00
Christoph Oelckers
b4d03501af
- be a bit more aggressive with the GC when not running the game loop.
...
Since most CheckGC calls are within the main game ticker, the engine can accumulate a lot of data when creating/deleting objects in the menu or other UI parts and never manage to collect everything
2021-10-03 14:01:27 +02:00
Christoph Oelckers
88be3b8a1b
- fixed base class for DShape2DBufferInfo.
2021-10-03 13:09:39 +02:00
Christoph Oelckers
6da9f00e6e
- allow "INDEXFON" as an alias for "INDEXFONT".
2021-10-03 09:00:24 +02:00
nashmuhandes
70b72a2157
- Recognize the new lightmap UDMF keywords
...
- Add dummy actors to hold the UDMF keys for lightmapping. These actors will despawn at map start
- Make light probe despawn at map start as well
2021-09-29 17:42:48 +08:00
nashmuhandes
ff3cdb7e56
Merge branch 'master' of https://github.com/coelckers/gzdoom into lightmaps2
2021-09-27 07:32:30 +08:00
Emile Belanger
8f54de99e0
GLES: Fix texture MapBuffer and AllocateBuffer create client side memory.
2021-09-25 11:14:18 -04:00
Magnus Norddahl
b59554f319
Fix "out of memory" errors when the vulkan backend is asked to create zero byte sized buffers
2021-09-25 08:42:31 -04:00
Jan Engelhardt
25350109e8
gles: look for libGLESv2.so.2
...
Distros do not have the .so files at all times, because those are
counted as development and not runtime.
2021-09-25 04:21:16 -04:00
nashmuhandes
d2b8f1aaff
Add light probe actor
2021-09-25 12:00:25 +08:00
Magnus Norddahl
8a2f445dd6
Fix lightmap texture not getting bound by the OpenGL backend
2021-09-25 00:39:28 +02:00
Magnus Norddahl
63ecb36889
Add lightmap texture support to vulkan backend
...
Also fix a warning in SetFlatVertex
2021-09-25 00:13:25 +02:00
Magnus Norddahl
24070cba2d
Add missing LightMap bind call
2021-09-24 17:24:59 +02:00
Magnus Norddahl
604c4ff8e0
Fix vertex layout locations and add lightmap to vulkan shader
2021-09-24 16:21:23 +02:00
nashmuhandes
2f8cff90b6
- Add lightmaps to the main shader (currently only OpenGL)
...
- Create a version of CreateIndexedSectorVertices that works with lightmap sectors
2021-09-24 16:56:15 +08:00
nashmuhandes
39481f0d07
- Add support for loading lightmap data generated by ZDRay
...
- Initialize lightmap texture in the hardware abstract parts of the engine
2021-09-24 14:51:48 +08:00
drfrag
c13cd74766
- Fixed broken V_BreakLines.
2021-09-23 15:36:24 +02:00
Christoph Oelckers
da806b354d
- cleanup of the revised y-clamping feature.
...
This integrates better with the existing features.
2021-09-21 20:31:42 +02:00
Emile Belanger
4de6b769d3
GLES: Only use GPU sync if necessary and available.
...
If there are complaints of reduced performance, or visual artefacts compared to 4.6.1, it may be worth increasing HW_MAX_PIPELINE_BUFFERS to 4 again.
2021-09-21 18:45:55 +02:00
Emile Belanger
db59a4f9af
Add buffer synchronisation for GLES when using mapped buffers.
2021-09-20 18:12:20 -04:00
Emile Belanger
76875f0a3c
Fix spot lights for GLES
2021-09-20 18:12:20 -04:00
Emile Belanger
e361ff1a9c
Removed unused EGL files
2021-09-20 18:12:20 -04:00
Yarn366
6d8862b514
Added detection for IWADs downloaded via the Bethesda.net Launcher
2021-09-20 10:50:19 -04:00
Cacodemon345
567bff403a
Fix broken text input when SDL2 is using Wayland
2021-09-20 10:49:41 -04:00
Rachael Alexanderson
cb0c8922e0
- downgrade GL_EXTENSIONS message in OpenGL ES to logging level
2021-09-20 08:46:34 -04:00
Christoph Oelckers
a0043ec09d
- better handling of texture clamp state.
...
Free combination of clamping with all texture modes still missing in GLES and Softpoly renderers!
2021-09-19 14:54:34 +02:00
Christoph Oelckers
fc2818b195
- menu system update from Raze for better control of animated menus.
2021-09-18 12:19:35 +02:00
Christoph Oelckers
7aaea65f28
- fixed GLES startup
2021-09-18 10:18:23 +02:00
Christoph Oelckers
67958833b7
Merge branch 'gles2_merge'
2021-09-17 21:22:41 +02:00
Christoph Oelckers
918e9e9b0d
- fixed texture clamping for elements that are partially behind a slope.
...
This is mainly mid textures on linedefs and decals.
2021-09-17 00:25:28 +02:00
Christoph Oelckers
23a2ccec2b
- Consider 'Program Files' a read only location without actually checking.
...
Due to virtualization the actual check may not produce correct results, plus writing there is bad style anyway.
2021-09-15 00:39:18 +02:00
Christoph Oelckers
17638426b9
- removed the redundant gl_render_precise CVAR.
...
The menu now uses gl_seamless directly without the redirection.
2021-09-14 19:49:42 +02:00
Christoph Oelckers
b0382599f6
- removed the SSBO block for desktop OS’s when gl_pipeline_depth is enabled
2021-09-14 00:13:08 +02:00
Magnus Norddahl
796890bb98
Limit texture upload transfer buffers to roughly 64 MB
2021-09-13 23:56:15 +02:00
Christoph Oelckers
f783a94835
- treat 'vid_adapter 0' as what Windows considers the primary monitor.
...
Courtesy of https://devblogs.microsoft.com/oldnewthing/20070809-00/?p=25643
2021-09-12 10:02:30 +02:00
Christoph Oelckers
b5294e9e90
- backend update from Raze.
2021-08-31 07:59:37 +02:00
Christoph Oelckers
03c8fd9956
- block user overrides for the logic module of core fragment shaders.
2021-08-24 10:24:23 +02:00
Christoph Oelckers
8bdd4befbf
- replaced deprecated throw() with noexcept in TObjPtr
2021-08-21 12:22:15 +02:00
Christoph Oelckers
4614ce41cd
- allow passing a remap table to BestColor.
2021-08-21 10:55:21 +02:00
Christoph Oelckers
19c8eb1e33
- fixed bad check for gl pipeline type.
2021-08-20 08:07:16 +02:00
Rachael Alexanderson
2096fefcee
Merge remote-tracking branch 'origin/master' into gles2_merge
2021-08-18 12:31:47 -04:00
Christoph Oelckers
109069f718
- removed the unused palette parameter from the V_GetColor family of functions.
2021-08-14 09:57:23 +02:00
Rachael Alexanderson
92a3731f20
Merge remote-tracking branch 'origin/master' into gles2_merge
2021-08-13 08:11:58 -04:00
Christoph Oelckers
c3772fe203
- changed FString API to use ptrdiff_t instead of long for signed size arguments.
2021-08-12 00:45:59 +02:00
alexey.lysiuk
ed606b8ed3
- extended 2D buffer lifetime to the end of the frame
2021-08-11 19:50:49 +02:00
alexey.lysiuk
387aef27ad
- use RefCountedPtr to manage 2D shape buffer infos
2021-08-11 19:50:49 +02:00
alexey.lysiuk
76ecf44549
- added RefCountedBase without virtual destructor
2021-08-11 19:50:49 +02:00
alexey.lysiuk
bbcd522052
- made RefCountedPtr follow rule of five
2021-08-11 19:50:49 +02:00
Gutawer
67e7d1a6f5
- make RenderCommands able to use Shape2D vertex buffers past the Shape2D's lifetime without crashing
2021-08-11 19:50:49 +02:00
Christoph Oelckers
ccf46281df
- fixed line color handling in V_BreakLines.
...
This cannot use the last color found while reading ahead - it must pick the last color of the string part that just got broken out into its own line when starting the next one.
2021-08-11 16:01:40 +02:00
Christoph Oelckers
1097bd6c73
- fixed: instead of checking gl_lights, better check Level->HasDynamicLights.
...
Especially in the thinker code this is needed for software rendering.
Strictly speaking, the software renderer should do the same, but it checks r_dynlight in so many places deep in the logic where the level is not available.
2021-08-11 14:09:00 +02:00
Christoph Oelckers
26d00e14c7
- file system update from Raze.
2021-08-11 12:39:32 +02:00
Christoph Oelckers
3adadfe4d3
- do not run the dynamic light ticker when lights are switched off.
2021-08-11 12:39:17 +02:00
Christoph Oelckers
f662c629e3
- ensure that shadowmap indices only get set when shadowmaps are enabled.
...
Having valid indices set when shadowmaps are off would cause the shader to run the full checks for all lights.
2021-08-11 10:06:22 +02:00
Christoph Oelckers
436ec28e94
- fixed file system's zip loader to not strip away a 'filter/' prefix.
2021-08-11 10:01:11 +02:00
Christoph Oelckers
c24f644a61
- do not perform shadowmap updates when dynamic lights are disabled.
2021-08-11 08:08:29 +02:00
Christoph Oelckers
6a63d9e70e
- moved the CheckForRestart call one level up so that it is within the Windows code and does not need #ifdefs.
2021-08-10 22:17:00 +02:00
Christoph Oelckers
4505bfa4b8
- delay the restart action from the error pane until after everything has been shut down.
...
This cannot be done from a place where the old instance still can write to the config file, which happens only in the shutdown process.
2021-08-10 22:09:32 +02:00
Christoph Oelckers
b6156ac490
- re-fixed the font spacing.
2021-08-10 22:04:32 +02:00
Christoph Oelckers
9cd1e8cf7a
- use proper XMove for sheet fonts.
2021-08-10 21:18:27 +02:00
Christoph Oelckers
03b7324f71
- reorder evaluation for 'if' statements to handle the condition first.
...
Otherwise this won't emit errors if a bad condition is used with an empty conditional part.
2021-08-10 19:03:40 +02:00
Christoph Oelckers
a16088f4b4
- fixed two vr_* CVARs not getting archived.
2021-08-10 18:51:44 +02:00
Christoph Oelckers
61efe76ffd
- fixed: palette index 0 (transparent) was left uninitialized for BMF fonts.
2021-08-10 18:18:44 +02:00
alexey.lysiuk
747c291ae1
- fixed patch version in compatibility implementation of macOS detection
2021-08-07 12:37:18 +03:00
Cacodemon345
a067466dd8
SDL2: Properly print white bold text to the screen
2021-08-04 20:27:14 +03:00
Christoph Oelckers
441cd0796f
- merged gzdoom-gles2 and fixed some issues with pipeline size validation.
2021-08-03 20:12:19 +02:00
Christoph Oelckers
b82b5384a0
- Backend update from Raze.
...
* voc loader fix.
* better prefix detection in Zip loader.
* SDL Vulkan init.
* disabling of shadowmap management when the feature is off.
2021-08-03 12:52:21 +02:00
Christoph Oelckers
c1a8776a15
- updated common code from screenjob branch.
...
That is, all parts not related to cutscenes.
2021-08-03 12:30:44 +02:00
alexey.lysiuk
7a3d8bd0e5
- fixed crash after fatal error in SDL backend
...
https://forum.zdoom.org/viewtopic.php?t=72885
2021-07-28 09:50:34 +03:00
Rachael Alexanderson
eb2646b613
- change previous /0 fix: as suggested here: cb8ae0b560 (commitcomment-53414064)
2021-07-13 06:32:54 -04:00
Christoph Oelckers
0cffeef2c6
- added map option to disable shadowmaps.
...
Prompted by 'Hurt' which has > 4000 lights and runs into both performance issues and unpredictable light selection for the limited amount of shadowmap slots.
2021-07-13 11:54:25 +02:00
Rachael Alexanderson
cb8ae0b560
- fix /0 error caused by having a completely black font character. this error was triggered by Return of the Triad.
2021-07-13 00:15:39 -04:00
Christoph Oelckers
e453f97872
- Backend update from Raze.
2021-07-11 09:53:01 +02:00