Commit Graph

1060 Commits

Author SHA1 Message Date
Azamat H. Hackimov
3f588adb0a Fix audio distortions on MVE playback with pipewire backend
Don't define fixed buffer length for audio device, SDL2 calculates desired length itself.
Minor cleanups and fixes to virtual class and constructor.
2024-08-29 16:29:46 +03:00
Louis Gombert
2db85ca6ec
Merge pull request #545 from tophyr/pr/improve-render-perf
Improve Renderer Performance
2024-08-27 23:19:55 +02:00
Louis Gombert
672a82ec6f
Merge pull request #544 from winterheart/reactivate-editor
Reactivate editor
2024-08-26 22:17:12 +02:00
Azamat H. Hackimov
baf36b99fd
Merge pull request #547 from pzychotic/fix-busy-wait
Replace busy wait loop with a sleep
2024-08-26 20:35:30 +03:00
Thomas Roß
c738327e79 [UI] Replaced busy wait loop with a sleep. 2024-08-26 00:45:06 +02:00
Chris Sarbora
be59b88b26
Improve Renderer Performance
Use orphaned "buffer update streaming" to eliminate synchronization
delays, due to CPU->GPU latency, causing framerate slowdowns. This sends
vertex data to the GPU via partial updates to a buffer and reallocates
the buffer once it fills up, ensuring that no synchronization is ever
needed. The buffer is sized to balance memory usage vs allocation rate,
and the GL driver ensures that "orphaned" buffers are only destroyed
when all GL commands using them are retired.
2024-08-24 17:19:27 -05:00
Louis Gombert
d91f4357f6
Merge pull request #520 from winterheart/sleep-crossplatform
Crossplatform enhancements
2024-08-21 21:33:29 +02:00
Azamat H. Hackimov
1fdffe1700 Reactivate editor building 2024-08-21 17:29:14 +03:00
Azamat H. Hackimov
4aa17f36d4 Minor cleanups to HardwareOpenGL.cpp 2024-08-21 15:29:05 +03:00
Azamat H. Hackimov
1de5da7777 Remove external symbols from GL renderer
Remove unused linux_permit_gamma variable. Remove d3SDLEventFilter() as it initialized earlier.
2024-08-21 14:52:58 +03:00
Azamat H. Hackimov
39e971504e DDIO: implement mouse grab state functions
Hide global variable ddio_mouseGrabbed.
2024-08-21 12:29:28 +03:00
Azamat H. Hackimov
79db9aa3e2 Move platform-specific defines and macros to own file crossplat.h 2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
22829e5e43 netcon: replace DLLddio_MakePath with std::fs::path 2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
58fe55605d netcon: remove Mastertracker update check
This part of code unreachable - we don't have mtav.dll anymore, and MTUpdateURL is empty. Simplify code related version check.
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
c6d31f3820 MODULE: rewrite mod_LoadModule() to use std::fs::path 2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
739409a653 MODULE: rewrite mod_GetRealModuleName()
Drop DDIO dependency.
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
73477877a0 MODULE: cleanup DDIO related functions
Remove duplicated code.
2024-08-20 23:09:21 +03:00
Azamat H. Hackimov
54f9d75e62 Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
Azamat H. Hackimov
16a6866885 DDIO: new crossplatform SleepMS() function
Use C++ chrono and thread for crossplatform sleep function.
2024-08-20 23:08:10 +03:00
Louis Gombert
45ff821328
Merge pull request #539 from pzychotic/code-cleanup
Code cleanup
2024-08-20 21:39:15 +02:00
Thomas Roß
db7584ea1a [Multiplayer] Removed unused global variable. 2024-08-20 20:03:02 +02:00
Thomas Roß
b3cc92d0c2 [Cleanup] Remove unused code. 2024-08-20 20:03:02 +02:00
Thomas Roß
bdf992a8fd [CMake] Add cfile tests to 'tests' folder in IDEs. 2024-08-20 20:03:02 +02:00
Thomas Roß
fdcc348b9c [Cleanup] Fixed mismatch between function declarations and implementations. 2024-08-20 20:03:02 +02:00
Thomas Roß
7b71873a69 [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
Thomas Roß
a637f1e883 [Lib] Deleted unused header files. 2024-08-20 20:03:02 +02:00
Thomas Roß
a57b8e17a8 [Sound] Deleted unused header files. 2024-08-20 20:03:02 +02:00
Thomas Roß
3162d4a4af [DDIO] Deleted unused ddio_win.h. 2024-08-20 20:03:02 +02:00
Thomas Roß
69945e93a8 [Misc] Deleted leftover empty logging code. 2024-08-20 20:03:02 +02:00
Louis Gombert
10ce4e48b7
Merge pull request #542 from rfht/main
build on OpenBSD via Linux pathways
2024-08-20 18:30:23 +02:00
Azamat H. Hackimov
b6729a5813
Merge pull request #538 from pzychotic/fix-key-triggers
Fix key triggers
2024-08-20 19:03:22 +03:00
Azamat H. Hackimov
1026a6e80b
Merge pull request #527 from tophyr/pr/modernize-renderer
Modernize Renderer
2024-08-20 19:00:43 +03:00
thfrwn
35bcbe8bf0 build on OpenBSD via Linux pathways 2024-08-20 10:03:24 -04:00
Thomas Roß
cce73891fa [Keyboard] Fixed a bug, where when a keyboard action has a 2nd key binding, both keys need to be hit to trigger the action.
(cherry picked from commit 7f4da73dc8a20202b25a5e2e901684ca08c95018)
2024-08-18 21:21:00 +02:00
Louis Gombert
3cb1e8911a
Merge pull request #479 from DescentDevelopers/editor-fix-deprecation
Fix deprecation warning about  /Zc:forScope-
2024-08-18 14:49:41 +02:00
Louis Gombert
f97ab8aa83
Merge pull request #533 from winterheart/switch-1.6.0
Prepare to next major version 1.6.0
2024-08-18 11:54:11 +02:00
Louis Gombert
aff1276aec
Merge pull request #495 from winterheart/ddio-update
DDIO: replace ddio_FindFileStart(), ddio_FindNextFile() and ddio_FindFileClose() with ddio_DoForeachFile()
2024-08-18 11:47:07 +02:00
Chris Sarbora
8bd1b678f0
Gate OpenGL error-checking on a compilation setting rather than Debug/Release 2024-08-18 03:26:07 -05:00
Chris Sarbora
46043e709d
use GL_RGBA8 instead of invalid GL_RGB 2024-08-18 03:26:07 -05:00
Chris Sarbora
38100b8ed1
use GL_CLAMP_TO_EDGE instead of deprecated GL_CLAMP 2024-08-18 03:26:07 -05:00
Chris Sarbora
77fb0cd1ab
use GL_TRIANGLE_FAN instead of nonexistent GL_POLYGONS 2024-08-18 03:26:06 -05:00
Chris Sarbora
a06e78074f
remove EXT and ARB suffixes 2024-08-18 03:26:06 -05:00
Chris Sarbora
791cdcb308
eliminate hints to things the shader does now 2024-08-18 03:26:06 -05:00
Chris Sarbora
256898dfc6
Move fog into shader 2024-08-18 03:26:06 -05:00
Chris Sarbora
625b2fc1a1
update vertices modernly 2024-08-18 03:26:06 -05:00
Chris Sarbora
0dd203e2c0
create, track, and clean up texture ids responsibly 2024-08-18 03:26:06 -05:00
Chris Sarbora
a5081982f6
Always use Multitexture 2024-08-18 03:26:06 -05:00
Chris Sarbora
d25bf5e4e1
set up texture enabling
eliminate gl(Enable|Disable)ClientState and glClientActiveTextureARB
2024-08-18 03:26:06 -05:00
Chris Sarbora
5b4703bf5f
pipe color and texcoords thru the shaders 2024-08-18 03:26:06 -05:00
Chris Sarbora
16df2d764a
Set up transformations in vertex shader 2024-08-18 03:26:03 -05:00