Commit graph

4482 commits

Author SHA1 Message Date
Yamagi
14f819aac5
Merge pull request #1148 from 0lvin/backport
Fix memory leaks
2024-09-08 09:33:53 +02:00
Denis Pauk
ff115d7061 client: update mpeg video decoder
3198122a19/pl_mpeg.h
2024-09-08 03:18:26 +03:00
Andrew Malchuk
d7845deb4c
Fix Windows key bind name on non-Mac 2024-09-07 14:25:26 +04:00
Denis Pauk
ca5d679b39 github actions: fix win64 build 2024-09-06 01:17:17 +03:00
Denis Pauk
4778c6bd7c soft: reuse R_BuildLightMap code 2024-09-03 00:44:57 +03:00
Jaime Moreira
d90dc649ec Revert "PCX_Decode warning demoted to 'dev only'"
This reverts commit 4756c44155.
2024-09-01 19:21:48 -04:00
Denis Pauk
8d8034f244 files/light: rework R_BuildLightMap code 2024-09-02 00:31:31 +03:00
Denis Pauk
eb3ea06fc9 pcx: make palette marker optional 2024-08-31 16:13:33 +03:00
Denis Pauk
a2536cc735 pcx: make palette marker optional 2024-08-31 13:18:00 +03:00
Jaime Moreira
b00e925d47 Refactored obtaining the renderer used
...in videomenu code. Now it allows to use switch statements, to
avoid the execution of paths not meant for certain renderers.
2024-08-30 00:48:24 -04:00
Jaime Moreira
13deb72b16 Flick Stick refactor
Removed redundant calculations
2024-08-29 15:44:34 -04:00
Denis Pauk
a7cb9431b3 client: Fix filesystem memory leaks 2024-08-28 00:45:02 +03:00
Denis Pauk
b3efe338c1 client: Fix memory leaks 2024-08-28 00:40:06 +03:00
Denis Pauk
04aec20891 gl1, gl3: use GL_LIGHTMAP_FORMAT intead internal_format
value is never changed, so replace should be safe.
2024-08-27 23:47:27 +03:00
Denis Pauk
758961a848 maps: fix in load n64jam_doomshakalaka
Checks entid is bigger than maximum number of entities.

https://www.moddb.com/games/quake-2/addons/quake-2-re-release-n64-sp-map-jam
2024-08-27 23:22:51 +03:00
Jaime Moreira
f839596168 SDL3 nomenclature: "game controller" to "gamepad"
Changes are mostly visual; many elements are still referred as "controller"
in backend, to maintain parity with SDL2.
2024-08-27 13:13:24 -04:00
Jaime Moreira
15f9d35d39 Default button for 'Esc' in gamepad is now Start 2024-08-27 13:10:25 -04:00
Jaime Moreira
68973b6ae7 Flick Stick fixed duration to 0.1 seconds
Formerly, there were "6 frames" with a precalculated change factor on each frame.
This allowed to use Flick Stick exclusively on vsync 60 Hz screens only (6 *
16.6 ms = 100 ms). By using any other refresh rate, or just disabling vsync,
these 6 frames could take any time, normally much less than the intended 100 ms.
Now delta time is used to calculate the angle change on each frame displayed,
so the entire flick duration remains at 100 ms, independent of refresh rate.
2024-08-27 13:05:44 -04:00
Jaime Moreira
4756c44155 PCX_Decode warning demoted to "developer only"
"(Texture.pcx) file has possible size issues" will only appear when `developer 1`.
It might get annoying on properly working mods.
2024-08-27 13:04:00 -04:00
Denis Pauk
33ebf6c193 vk: replace index buffer after new frame only 2024-08-27 01:22:31 +03:00
Denis Pauk
10ee6eace3 vk: Create more image semaphores that command buffers used.
Mostly workaround for vkAcquireNextImageKHR errors,
Create more cmdbuffers with slow vulkan implementation could produce
issues when old cmdbuffer is not finished but need to resize dynamic buffer.

Based on
```
Added additional image ready semaphore - this addresses validation errors
when calling vkAcquireNextImageKHR() which started appearing in SDK 1.3.275
```
88009a6149
2024-08-26 15:47:56 +03:00
Denis Pauk
ed3d760840 vk: force render all calls before change viewport 2024-08-25 23:40:04 +03:00
Denis Pauk
131164748e maps: fix in load n64jam_doomshakalaka
https://www.moddb.com/games/quake-2/addons/quake-2-re-release-n64-sp-map-jam
2024-08-25 19:20:18 +03:00
Denis Pauk
b685aa4683 vk: force clean up vertex push constants 2024-08-25 17:43:44 +03:00
Denis Pauk
833932ce44 vk: use static index buffer for merged tex calls 2024-08-25 17:12:49 +03:00
Denis Pauk
1a760004d8 vk: merge QVk_DrawTexRect calls 2024-08-25 15:49:14 +03:00
Denis Pauk
a06ef9aa4a vk: merge QVk_DrawColorRect calls 2024-08-25 15:00:12 +03:00
Denis Pauk
d9da999bcd vk: get rid vk_colorRectVbo usage 2024-08-25 14:09:53 +03:00
Denis Pauk
9c230d09e9 vk: get rid texVerts usage 2024-08-25 14:08:27 +03:00
Denis Pauk
070b2345c0 vk: get rid of static vk_rectIbo 2024-08-25 14:07:56 +03:00
Denis Pauk
0773d3c3fe Merge remote-tracking branch 'yquake2/master' 2024-08-21 22:51:15 +03:00
Yamagi
45fce1deb0
Merge pull request #1143 from apartfromtime/master
sound: True randomness
2024-08-21 21:17:46 +02:00
Yamagi
f3b0341b21
Merge pull request #1144 from apartfromtime/console-Fix-cursor-timestep
console: Fix cursor timestep
2024-08-21 21:15:45 +02:00
apartfromtime
7fa653cae1 console: Fix cursor timestep 2024-08-19 21:03:30 +10:00
apartfromtime
912b65ff74 sound: True randomness
True randomness allows producing a number twice.
2024-08-19 20:01:44 +10:00
Denis Pauk
8d5da27bc3 Merge remote-tracking branch 'yquake2/master' 2024-08-18 22:35:38 +03:00
Yamagi
6066b3c979 Another round of changes to the Github workflows.
* Build ref_gles1 only on Linux, it's of limited use under MacOS and Win.
* Fetch openal-soft from Github, the other mirror had several connection
  problems in the past.
* Always include the latest curl.dll in Windows builds. Since this isn't
  a stripped down build of curl, it's better to have it up to date.
* Make sure that we are on Ubuntu 22.04. Otherwise the binaries wouldn't
  work on newer distros when `ubuntu-latest` becomes Ubuntu 24.04.
* Fix some typos.
2024-08-18 16:55:02 +02:00
Yamagi
e2d8572839
Merge pull request #1140 from BjossiAlfreds/spawntemp-leak-fix
Fixed spawntemp data leaking into mid-level spawned entities
2024-08-18 16:01:19 +02:00
Yamagi
288b5c2c79
Merge pull request #1141 from atsb/gl4_sliders_video_menu
GL4: Enable sliders for overbrights, colours and intensity
2024-08-18 15:53:45 +02:00
Yamagi
730d5281fd
Merge pull request #1142 from devnexen/fix_warning_hunt_target
AI, HuntTarget fix runtime warning.
2024-08-18 15:37:14 +02:00
Denis Pauk
6d1a911a86 vk: use 32 command buffers in queue
Workaround for:
 Validation Error: [ VUID-vkAcquireNextImageKHR-semaphore-01779 ] Object 0: handle = 0x90000000009, name = Semaphore: image available #0, type = VK_OBJECT_TYPE_SEMAPHORE; | MessageID = 0x5717e75b | vkAcquireNextImageKHR():  Semaphore must not have any pending operations. The Vulkan spec states: If semaphore is not VK_NULL_HANDLE it must not have any uncompleted signal or wait operations pending (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkAcquireNextImageKHR-semaphore-01779) (validation)
2024-08-18 15:44:55 +03:00
Denis Pauk
3cd735cd23 Merge remote-tracking branch 'yquake2/master' 2024-08-17 23:53:57 +03:00
atsb
9ad9cb8682 GL4: Gamma correction using sRGB
cb2c346521
2024-08-17 23:51:47 +03:00
atsb
8b9a4ab8e4 SDL3: Changes for latest master
82e397ae92
2024-08-17 23:41:24 +03:00
atsb
d56dc492c9 A little optimisation
Using a more modern opengl code to make this part a little more efficient on modern cards to bind the buffers.  We are simply binding and unbinding the buffer when it is full, on modern cards this is fine and perfectly efficient enough, same goes for CPU's.

29595b02f8
2024-08-17 23:35:32 +03:00
David Carlier
d7dd4e40a4
AI, HuntTarget fix runtime warning.
`Conditional jump or move depends on unitialised value(s)...HuntTarget
(g_ai.c:423)...`
2024-08-17 15:55:58 +01:00
atsb
21d5d010b5 GL4: Enable sliders for overbrights, colours and intensity
This will match the vk and gl3 menu sliders for their respective video modes.
2024-08-17 09:31:51 +02:00
Yamagi
ccba5946fd Enable ref_gles1 in CI builds. 2024-08-13 00:17:50 +03:00
BjossiAlfreds
e33d675757 Fixed spawntemp data leaking into mid-level spawned entities 2024-08-12 16:32:45 +00:00
Yamagi
a26c496038 Enable ref_gles1 in CI builds. 2024-08-12 18:21:22 +02:00