Commit graph

1846 commits

Author SHA1 Message Date
Stephen Saunders
9511a529af Fix regression in networking memory cleanup in idLobby 2024-01-19 23:06:04 -05:00
Robert Beckebans
bbbb14159f Tweaked dithering with standard deviation 2024-01-11 22:06:55 +01:00
Robert Beckebans
4bc81a1cd7 Added Amstrad CPC 6128 mode 2024-01-10 00:04:26 +01:00
Robert Beckebans
4879fb78ea Changed ENGINE_BRANCH string 2024-01-03 16:13:51 +01:00
Robert Beckebans
610157fe8f Added menu options for Retro modes 2024-01-03 15:54:58 +01:00
Robert Beckebans
cbe6147f03 Tweaked dithering and added more modes 2024-01-01 16:45:17 +01:00
Robert Beckebans
523e483e1c Merge branch 'master' into 571-retro-8-bit-postfx 2024-01-01 14:50:52 +01:00
Robert Beckebans
779f38d84c Tweaked PSX dithering 2023-12-30 18:43:09 +01:00
Robert Beckebans
fd5b25dc59 Added nearest filtering for PSX render mode. Closes #613 2023-12-30 15:01:31 +01:00
Robert Beckebans
567b95a642 Added r_renderMode cvar for Retro rendering modes: C64, Sega, PSX 2023-12-30 14:10:07 +01:00
Robert Beckebans
cd6c804508 Moved makeImageHeader to Image_intrinsic.cpp 2023-12-29 17:16:54 +01:00
Robert Beckebans
e51b41cc66 Added CRT options as cvars 2023-12-29 12:31:43 +01:00
Robert Beckebans
df7d0b8d28 Tweaked CRT shaders 2023-12-28 22:35:58 +01:00
Robert Beckebans
1e9bc96191 Going back to a single renderprog volatile constant buffer to avoid crashes 2023-12-28 16:16:15 +01:00
Stephen Saunders
dd17edbdc1 Simplify OPTICK_THREAD() instrumentation and fix scope for common_frame 2023-12-28 09:41:18 -05:00
Stephen Saunders
7d67082a10 Fix clang compile failure in GuiModel: use static_cast<short> in initializer list 2023-12-28 09:32:06 -05:00
Robert Beckebans
13f9ee8cfb Added old MatthiasCRT shader to crt_newpixie.*.hlsl 2023-12-28 15:29:50 +01:00
Stephen Saunders
6e2c637578 valgrind: Fix uninitialized variables in debug tools - ImmediateMode and Optick 2023-12-28 09:29:47 -05:00
Stephen Saunders
f714e791fe Fix memory leak in Optick when ThreadEntry is terminated while still in scope (i.e. exit) 2023-12-28 09:24:48 -05:00
Robert Beckebans
ed6b61a9f9 Hooked in the ability to do postfx after everything else is rendered 2023-12-28 14:39:59 +01:00
Robert Beckebans
49130533c6 Further tweaks on the C64 shader 2023-12-28 13:06:42 +01:00
Robert Beckebans
a589f3e6f0 Implemented binary search for colors in HLSL 2023-12-27 15:14:58 +01:00
Robert Beckebans
9e88365c59 Added Commodore 64 post processing effect 2023-12-26 22:08:04 +01:00
Robert Beckebans
59940e7037 Got rid of NVRHI depth-stencil is read-only warnings. Closes #760 2023-12-26 15:33:02 +01:00
Stephen Saunders
c57ffb8279 Fix decl->parsedOutsideLevelLoad flag set/reset, show state (!) in list<Decl> console commands 2023-12-26 13:15:32 +01:00
Stephen Saunders
2726e6ae29 Respect binary file row pitch for reading and uploading DXT1/DXT5 compressed mip images 2023-12-26 13:15:32 +01:00
Stephen Saunders
ad046923f5 VertexCache: enforce cache alignment without read beyond buffer boundary during allocation and update 2023-12-26 13:15:32 +01:00
Stephen Saunders
341b90bc05 Allocate correct memory size for FMT_DXT1 / FMT_DXT5 compressed images, fully init renderEntity_t in ReadFromDemoFile() 2023-12-26 13:15:32 +01:00
Stephen Saunders
aeb3e21bb9 Revert and fix filename change in idProgram::CompileText() for savefile compatibility 2023-12-26 13:15:32 +01:00
Stephen Saunders
e0fe1b8bed Properly init / shutdown device manager (all platforms) and SDL (non-windows) to avoid leaks 2023-12-26 13:15:32 +01:00
Stephen Saunders
8867e865e0 valgrind: fix undefined variables/warnings and a few more memory leaks on quit 2023-12-26 13:15:29 +01:00
Stephen Saunders
a7ef79ecb1 Fix leaks on quit: Free verts / indexes for basic surface triangles and shutdown SDL via SDL_Quit() 2023-12-26 13:14:59 +01:00
Stephen Saunders
d9835cb2b4 Revert SetMaxLength() change and instead call TakeDataOwnership() to fix memory leak in InitSaveProfile() 2023-12-26 13:14:59 +01:00
Stephen Saunders
402496411b Fix a leak in InitSaveProfile() caused by skipping file memory cleanup in ~idFile_Memory() when maxSize != 0 2023-12-26 13:14:59 +01:00
Stephen Saunders
04c638fb28 Fix a few remaining leaks in idFont, SWF Scripts, and idTrigger_Touch 2023-12-26 13:14:59 +01:00
Stephen Saunders
cb209718be Fix lightGridPoints and demo entity joints memory leaks 2023-12-26 13:14:59 +01:00
Stephen Saunders
2335326a6b Revert changes to idPolynomial, add ~idPolynomial() destructor to fix leak properly 2023-12-26 13:14:59 +01:00
Stephen Saunders
fe411ba3b5 Fix a bunch of memory leaks throughout codebase 2023-12-26 13:14:58 +01:00
Robert Beckebans
92ad0cb0fe Doubled MAX_GLOBALS for the Runners 2.6 mod. closes #835 2023-12-20 14:38:01 +01:00
Robert Beckebans
96ebce54b1 Merged script interpreter improvements from Dhewm3 #835 2023-12-16 15:48:35 +01:00
Robert Beckebans
08be7a35f9 Duplicating lights with Ctrl+D works now 2023-12-10 17:00:07 +01:00
Robert Beckebans
563f1be37d Attempt to support 'light_origin' with editLights. #825 2023-12-04 20:15:34 +01:00
Robert Beckebans
288852224a convertMapToValve220 removes light flares 2023-11-07 21:11:57 +01:00
Robert Beckebans
a00d6dc9d9 Possible crashfix for D3HDP #822 2023-10-30 22:41:23 +01:00
Robert Beckebans
8c464de83d Fixed scissor clipping issues of regular surfaces like light flares #651 2023-10-30 21:38:02 +01:00
Robert Beckebans
28c3ea9804 Updated FGDs for TrenchBroomBFG 2023-10-27 21:12:09 +02:00
Robert Beckebans
87e2004634 Added helper entityDefs for TrenchBroom 2023-10-26 01:52:03 +02:00
Robert Beckebans
958bd1a1cf Prioritize .wav and .ogg files over shipped .idwav files 2023-10-24 18:26:39 +02:00
Robert Beckebans
cd03d01e85 Moved ImGuizmo.{h/cpp} to neo/libs/imgui/ to avoid precompiled header issues 2023-10-18 13:48:40 +02:00
Robert Beckebans
def152081d Fixed bug in convertMapToValve220 cmd. Added origin brushes 2023-10-18 13:39:07 +02:00
Robert Beckebans
11d78d37be Added menubar with Ctrl+D Duplicate command 2023-10-18 13:39:07 +02:00
Robert Beckebans
4e638ae7a4 Light editor can use the rotation/scale gizmos 2023-10-18 13:39:06 +02:00
Robert Beckebans
8d2c54a999 Light editor can use the translation gizmo 2023-10-18 13:39:06 +02:00
Robert Beckebans
80ca705d8d Removed unimplemented renderer passes 2023-10-18 13:39:06 +02:00
Robert Beckebans
f408fcad38 Fixed Imgui and light scissor clipping issues. Closes #651 2023-10-18 13:39:06 +02:00
Robert Beckebans
8b1bc6d8cd Gizmo shows up 2023-10-18 13:39:06 +02:00
Robert Beckebans
2317b9779d ImGuizmo integration hello world 2023-10-18 13:39:06 +02:00
Robert Beckebans
6f98740772 Fallback to material stages for GetEditorImage() 2023-10-18 13:39:06 +02:00
Robert Beckebans
eb2d963784 Wrote simple exportMaterialsToBlender command 2023-10-18 13:39:06 +02:00
Robert Beckebans
719e925b2e Started to simplify the light editor 2023-10-18 13:39:06 +02:00
Robert Beckebans
d337111fbe Use same Instance pattern of AF editor for light editor 2023-10-18 13:39:06 +02:00
Robert Beckebans
c6ae88310f Always draw the console after Imgui 2023-10-18 13:39:06 +02:00
Robert Beckebans
b157445881 Added code to load UE5 editor themes into Imgui 2023-10-18 13:39:06 +02:00
Robert Beckebans
4e38e7a6dc Imgui ingame tools can use the docking feature now 2023-10-18 13:39:06 +02:00
Robert Beckebans
c9133de3da Updated Imgui to newest docking release v1.89.9 2023-10-18 13:39:06 +02:00
Robert Beckebans
b04705c594 Changed _currentRender back to RGBA16F 2023-10-18 13:06:14 +02:00
Stephen Pridham
251c879483 Move commonPasses back to private 2023-10-17 19:11:42 -04:00
Stephen Pridham
8919fab950 Fix fullscreen warp fx for grabber 2023-10-17 19:08:10 -04:00
Stephen Pridham
693883a737 Fix fullscreen fx 2023-10-17 18:01:35 -04:00
Robert Beckebans
8f84e54bb0 Restored ternary operator usage for older DXC compilers. Thanks SRSaunders 2023-10-12 10:11:00 +02:00
Robert Beckebans
feffa4a4dd Replaced ternary operators in HLSL code. Fixes #803 2023-10-09 15:14:43 +02:00
Robert Beckebans
a51833e4ed Applied astyle 2023-07-14 11:35:37 +02:00
Robert Beckebans
047dd46d9e Merge remote-tracking branch 'SRSaunders/clang-warnings-fixes' 2023-07-14 11:30:13 +02:00
Robert Beckebans
e0e77ce6b3 Applied astyle 2023-07-14 09:45:35 +02:00
Robert Beckebans
33615ef541 Merge remote-tracking branch 'SRSaunders/optick-vulkan' 2023-07-14 09:44:55 +02:00
Robert Beckebans
3da97f0e3f Applied astyle 2023-07-14 08:46:32 +02:00
Robert Beckebans
330486ecdf Merge remote-tracking branch 'SRSaunders/swapchain-fixes' 2023-07-14 08:41:40 +02:00
Stephen Saunders
eaa5cf8ff4 Enable gnu extensions for Optick profiler when using gcc compiler, i.e. support ##__VA_ARGS__ 2023-07-06 11:21:07 -04:00
Stephen Saunders
37fd056c2d Fix type mismatches in Optick GPUProfiler::Stop() 2023-07-06 11:08:50 -04:00
Stephen Saunders
a99c11730e Fix system vs. bundled library logic, suppress gcc/clang warnings for some third party source libs (jpeg, zlib, minizip) 2023-06-26 15:39:13 -04:00
Stephen Saunders
eef8e1b329 Fix PCH for idlib when using gcc compiler on linux 2023-06-24 01:24:08 -04:00
Stephen Saunders
c0e6c7a5dd Fix MSVC warnings for RBDoom3BFG, suppress for some third party source libs (jpeg, png, oggvorbis) 2023-06-23 16:30:48 -04:00
Stephen Saunders
02eda6f1d1 In Optick Core::DumpProgressFormatted() use vsnprintf() vs. vsprintf() for non-MSVC compilers 2023-06-23 16:02:32 -04:00
Stephen Saunders
4f6f23e8ac Fix Sync timer for timedemo "twice" mode and remove unneeded timings in TimeRenderDemo() 2023-06-20 22:25:24 -04:00
Stephen Saunders
4110dc1f05 Remove unneeded references to com_smp cvar 2023-06-20 22:04:11 -04:00
Stephen Saunders
99d9868bd9 Update CMakeLists to add clang -Wno-shorten-64-to-32 flag to suppress flood of int conversion warnings 2023-06-20 14:37:46 -04:00
Stephen Saunders
a67a100f19 Update rapidjson lib to remove deprecated std::iterator template and replace with required iterator types 2023-06-20 13:30:47 -04:00
Stephen Saunders
16077c7cd6 Update jpeglib's format_message() error routine to use snprintf() for buffer security 2023-06-20 13:16:37 -04:00
Stephen Saunders
52dd6193bf Replace sprintf() / vsprintf() with idStr::snPrintf() / idStr::vsnPrintf() for buffer security 2023-06-20 12:24:24 -04:00
Stephen Saunders
5ff88fdfd0 Fix Doom Classic crashes on exit and/or quit 2023-06-15 15:13:52 -04:00
Stephen Saunders
078eb4e779 Fix SDL window vs. Vulkan swapchain extent errors, align SDL vs. Win32 window handling & error logic 2023-06-09 14:48:36 -04:00
Stephen Saunders
db79692287 Implement Vulkan eMailbox present mode option, perform runtime check for all present modes
(cherry picked from commit 268c057af1aaf59833c52744ee76465c697ebdac)
2023-06-06 11:43:50 -04:00
Stephen Saunders
9ab8c2a4da Init swapChainBufferCount to NUM_FRAME_DATA (all renderers) and clamp to Vulkan surfaceCaps 2023-06-06 11:42:22 -04:00
Stephen Saunders
444b25a1e8 Wait for Vulkan device idle in DestroyDeviceAndSwapChain() to avoid random crashes on exit 2023-06-01 00:53:02 -04:00
Stephen Saunders
8a915b88a4 Enable PCH in CMakeLists for Optick-enabled builds with non-MSVC compilers 2023-05-24 01:11:18 -04:00
Stephen Saunders
9ebe476f4f Remove unnecessary Vulkan cast for m_SwapChain when calling OPTICK_GPU_FLIP() 2023-05-23 14:45:34 -04:00
Robert Beckebans
387c10ee52 Fixed crash in Delta Labs Sector 3 with Vulkan on Linux (Radeon RX 6700) 2023-05-23 17:50:25 +02:00
Stephen Saunders
2b933df6da Enable VSync / Present queue frameID labeling for DX12 2023-05-23 08:24:40 -04:00
Stephen Saunders
22dc020401 Redo Optick D3D12 VSync / Present queue labeling using measured vs. calculated frame latency 2023-05-23 08:19:53 -04:00
Robert Beckebans
5cbca047e7 Merge remote-tracking branch 'SRSaunders/dx12-alt-enter-fix' 2023-05-22 18:36:26 +02:00