vladislavbelov
2a0cd12a5d
Fixes builds on some platforms for libfmt 4 after ca242239f1.
...
Tested By: andy5995
Differential Revision: https://code.wildfiregames.com/D4890
This was SVN commit r27451.
2023-01-16 06:38:29 +00:00
vladislavbelov
28707d61dd
Fixes creating window on macOS in case of missing Vulkan driver. Fixes #6681
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4884
This was SVN commit r27438.
2023-01-13 20:32:36 +00:00
vladislavbelov
b31e698f12
Use override in classes derived from AbstractProfileTable.
...
Patch By: phosit
Differential Revision: https://code.wildfiregames.com/D4825
This was SVN commit r27414.
2023-01-10 22:32:08 +00:00
vladislavbelov
7c84c23114
Adds Vulkan backend.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4876
This was SVN commit r27412.
2023-01-10 20:22:20 +00:00
vladislavbelov
fc7c78b8cd
Refactors window creation in CVideoMode.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4866
This was SVN commit r27388.
2023-01-09 00:13:52 +00:00
vladislavbelov
ca242239f1
Adds StaticVector implementation.
...
Patch By: phosit
Comments By: jprahman, Stan
Differential Revision: https://code.wildfiregames.com/D4838
This was SVN commit r27329.
2022-12-31 19:10:17 +00:00
vladislavbelov
4ed41d4a9a
Switches from pipeline state descriptions to pipeline states.
...
Tested By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4850
This was SVN commit r27328.
2022-12-31 18:29:44 +00:00
Freagarach
ded41eab31
Allow other root XML than entity.
...
Implements a `GetOnlyChild()`, following discussion at
https://irclogs.wildfiregames.com/%230ad-dev/2022-05-06-QuakeNet-%230ad-dev.log .
Differential revision: https://code.wildfiregames.com/D4738
Comments by: @phosit, @Stan, @vladislavbelov, @wraitii
This was SVN commit r27323.
2022-12-30 07:34:23 +00:00
vladislavbelov
c0e888e2af
Removes SetViewport from CRenderer.
...
Differential Revision: https://code.wildfiregames.com/D4849
This was SVN commit r27313.
2022-12-29 06:53:06 +00:00
wraitii
a333c8f355
Use Future::CancelOrWait in pathfinder Deinit
...
If the pathfinding tasks are running, they might reference now-deleted
variables. CancelOrWait prevents this.
Remove `Future::Cancel()` altogether as that was its only use and the
functions seems dangerous.
Introduced with 0ebc08b13c
Patch by: phosit
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D4831
This was SVN commit r27310.
2022-12-28 11:34:04 +00:00
wraitii
92153b0afb
Replace SharedStateResult with std::optional
...
std::optional was not usable when our Future class was introduced, but
it is now, so we can replace SharedStateResult with it, reducing custom
code.
Note that Apple Clang has some incompatibilites with part of the
optional interface, but it isn't used here.
Patch by: phosit
Comments by: vladislavbelov
Accepted by: wraitii
Differential Revision: https://code.wildfiregames.com/D4803
This was SVN commit r27309.
2022-12-28 10:54:41 +00:00
vladislavbelov
2ef801f5d0
Remove some unnecessary string copy related to substr.
...
Patch By: phosit
Differential Revision: https://code.wildfiregames.com/D4772
This was SVN commit r27271.
2022-12-04 19:56:12 +00:00
vladislavbelov
55443563e6
Fixes calling SDL functions in CVideoMode after SDL_Quit.
...
CVideoMode::Shutdown was introduced in 97019c3a5a without any SDL calls
in it. But the one was added in d62e3729d5 .
Differential Revision: https://code.wildfiregames.com/D4836
This was SVN commit r27268.
2022-12-04 14:54:24 +00:00
vladislavbelov
87843b5c4e
Remove unused members of TaskManager::Impl missed in 1b35d36daa.
...
Patch By: phosit
Differential Revision: https://code.wildfiregames.com/D4826
This was SVN commit r27231.
2022-11-18 19:32:20 +00:00
Angen
017fe7e263
Restrict access for Read/WriteFile functions
...
For security reasons planing to restrict access for ReadFile,
ReadFileLines, WriteJSONFile, ReadJSONFile, ListDirectoryFiles,
FileExists to the following folders/files:
"gui, simulation, maps, campaigns, saves/campaigns,
config/matchsettings.json, config/matchsettings.mp.json"
adding "moddata" if some mods need to access and ship custom files that
don't fit into other locations mentioned above
Differential revision: D4617
Reviewed by: @phosit
Comments by: @Stan @vladislavbelov
Fixes : #5850
This was SVN commit r27202.
2022-11-05 08:33:27 +00:00
Angen
281bb0b2ec
Remove user.cfg from javascript
...
remove path from javascript
path is defined by the configuration scope
combine some calls
remove not needed calls
Differential revision: D4616
Accepted by: @Freagarach, @nani
Comments by: @phosit
This was SVN commit r27192.
2022-11-02 07:21:25 +00:00
vladislavbelov
480bc48194
Removes unused debug print of backend inside CVideoMode forgotten in 912202ff0c.
...
This was SVN commit r27185.
2022-10-30 00:43:45 +00:00
vladislavbelov
968fd50fb0
Moves Backend enum from CVideoMode to backends.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4809
This was SVN commit r27173.
2022-10-25 22:45:54 +00:00
vladislavbelov
ecab4595c3
Merges a duplication of CColor tests files introduced in 2c14d94559.
...
This was SVN commit r27133.
2022-10-07 23:19:12 +00:00
vladislavbelov
61019c0e91
Removes unused minimap shader variants.
...
This was SVN commit r27130.
2022-10-07 22:52:23 +00:00
vladislavbelov
4d77de66d4
Removes GUI dependency from Canvas2D.
...
Initially the GetDefaultGuiMatrix function was added in 4113aa0a36 and
renamed in 04c63a4093 .
This was SVN commit r27111.
2022-10-04 20:25:39 +00:00
vladislavbelov
bd7b9b884a
Fixes out of bounds on each match start in Profiler2 introduced in 3cbe96d24c. Refs #6620
...
Differential Revision: https://code.wildfiregames.com/D4787
This was SVN commit r27108.
2022-10-04 19:28:21 +00:00
vladislavbelov
6ca43f056d
Adds PS::span and std::string_view to CmdLineArgs.
...
Patch By: phosit
Differential Revision: https://code.wildfiregames.com/D4677
This was SVN commit r27106.
2022-10-04 19:08:39 +00:00
Stan
f68528777f
Bump version to alpha 27.
...
Last alpha 26 commit was [[SVN:27104]]
Accepted by: @asterix, @vladislavbelov
Discussed with: @Freagarach, @wraitii, @implodedok, @Itms
Refs: #6625
Differential Revision: https://code.wildfiregames.com/D4789
This was SVN commit r27105.
2022-10-04 17:05:11 +00:00
vladislavbelov
d286080285
Fixes the default number of workers in TaskManager in case of zero hardware_concurrency.
...
Differential Revision: https://code.wildfiregames.com/D4768
This was SVN commit r27064.
2022-08-20 20:40:05 +00:00
Stan
2285d84d3d
Fix warning reported by the NOPCH automatic CI.
...
This was SVN commit r27063.
2022-08-20 12:25:19 +00:00
Stan
e947dcb23c
Fix ab16e60afa
...
Reported by: @Langbart
Accepted by: @Vladislavbelov
Tested by: @Langbart
Fixes : #6603
Differential Revision: https://code.wildfiregames.com/D4765
This was SVN commit r27058.
2022-08-16 14:57:28 +00:00
Stan
ab16e60afa
Fix previous commit.
...
This was SVN commit r27056.
2022-08-14 18:22:48 +00:00
Stan
c9dc8676a6
Fix mod installation in non latin folders. Use OSString for consistency.
...
Refs e7ab22286e
Refs 880a797ce0
Refs 404e1a9a4a
Refs 52baaa4bbd
This was SVN commit r27055.
2022-08-14 17:55:08 +00:00
Stan
fb94d8aa59
Fix writing mod.json on Windows in non Latin user folders.
...
Accepted by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4741
This was SVN commit r27031.
2022-08-05 17:55:49 +00:00
wraitii
aaa95dc00b
Minor cleanup in Future and TaskManager
...
- Remove redundant std::move() calls
- default ctor/dtor in place of empty {}
Patch by: jprahman
Comments by; phosit
Accepted by: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4675
This was SVN commit r26916.
2022-06-02 12:59:25 +00:00
vladislavbelov
095838da0a
Fixes A8 framebuffer format used for LOS interpolation and enables smooth LOS by default.
...
Tested By: Langbart, mastoras
Differential Revision: https://code.wildfiregames.com/D4654
This was SVN commit r26906.
2022-05-26 16:36:57 +00:00
vladislavbelov
a6f60afdc5
Adds instancing support to backend and enables it for minimap.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4650
This was SVN commit r26901.
2022-05-24 07:11:23 +00:00
wraitii
557fa0312e
Fix non-visual autostart, as well as client/host autostart.
...
Follows 8eecc39e71 .
Piping the autostart through a GUI page is easy but requires using the
GUI in non-visual mode, which is problematic since it's not initialized.
The GUI is not needed, only its ability to load scripts, so this diff
fixes the problem by adding an 'entrypoint' script in the new
`autostart` folder that gets called with this unique ability, setting
things up properly. The mod mod gets a placeholder.
Other changes:
- Fix some issues with networked autostart:
- Players were not assigned slots.
- The host didn't actually wait for other players.
- Move gamesettings from `gui/gamesettings/` to `gamesettings/`. This
moves attributes as well.
- Move autostart files from `gui/autostart/` to ` autostart/`. Note that
`gui/autostart/` still exists as it's used in the tutorial button from
the main menu.
- Rename the JSI_VFS functions to be explicitly about their function:
the ability to write and the potential restricted folders.
- Don't require `autostart` when using `--autostart-client` in
non-visual mode.
Starting the autostart client/host has poor UX in some situations, but
improving that feature is beyond the scope of this diff.
Suggestions for future work:
- Some files in gui/common should probably be moved elsewhere
- Template loading code is duplicated
- The gamesetup code still needs work for proper UI/logic separation.
Help & comments by: smiley
Reported by: vladislav / Langbart
Fixes #6513
Differential Revision: https://code.wildfiregames.com/D4628
This was SVN commit r26879.
2022-05-15 06:34:17 +00:00
vladislavbelov
62e589ab76
Adds renderer backend interface and dummy backend.
...
Comments By: phosit, Stan
Tested By: Langbart, phosit
Differential Revision: https://code.wildfiregames.com/D4636
This was SVN commit r26858.
2022-05-08 22:02:46 +00:00
vladislavbelov
3ed4eaf247
Removes ogl_WarnIfError from regular renderer code.
...
This was SVN commit r26850.
2022-05-02 21:52:21 +00:00
vladislavbelov
04bd96cee0
Moves uniform and texture binding to CDeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4631
This was SVN commit r26848.
2022-05-02 20:57:22 +00:00
vladislavbelov
a8caed8348
Uses correct value_type to iterate over the map in JSInterface_Hotkey. Refs a4852c4c01.
...
Patch By: phosit
Differential Revision: https://code.wildfiregames.com/D4633
This was SVN commit r26847.
2022-05-02 10:03:34 +00:00
vladislavbelov
df612ab8b4
Moves GLSL-specific uniform name workaround (added in 227f9e403f) to CShaderProgramGLSL.
...
This was SVN commit r26816.
2022-04-23 21:39:15 +00:00
vladislavbelov
aba7a170d9
Moves vertex attribute binding to CDeviceCommandContext.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4610
This was SVN commit r26815.
2022-04-23 20:11:14 +00:00
vladislavbelov
2355240eec
Removes the Profiler allocation counter. Fixes #6476
...
Refs 5c8250ddb8 , 5664f097d9 , 6b0a0e83eb .
Patch By: smiley
Differential Revision: https://code.wildfiregames.com/D4606
This was SVN commit r26805.
2022-04-18 21:37:08 +00:00
vladislavbelov
d8d736f0eb
Allows tex clients decide how to handle invalid textures instead of assertions. Fixes #6436
...
This was SVN commit r26783.
2022-04-12 17:39:05 +00:00
vladislavbelov
e6dd9f944e
Moves Vulkan report code to its device to prevent crashing when a GL device is created. Fixes #6270
...
Differential Revision: https://code.wildfiregames.com/D4577
This was SVN commit r26779.
2022-04-12 06:39:14 +00:00
vladislavbelov
8a51e05c2e
Avoids a crash if a texture size is not a power of two.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4586
This was SVN commit r26774.
2022-04-11 16:28:41 +00:00
vladislavbelov
d3dd98418e
Fixes GLES build after c842678591.
...
This was SVN commit r26760.
2022-04-07 06:59:40 +00:00
vladislavbelov
c842678591
Removes usages of EXT and INTEL timer query GL extensions.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4571
This was SVN commit r26724.
2022-03-28 17:32:09 +00:00
vladislavbelov
ea6af3f148
Updates a model color uniform in RenderModifier only if it was changed.
...
This was SVN commit r26653.
2022-03-14 22:56:38 +00:00
Stan
687174e5d9
Fix crash when creating JSON file that do not exist.
...
Tested by: @Langbart
Refs: #6450
Differential Revision: https://code.wildfiregames.com/D4529
This was SVN commit r26604.
2022-03-07 15:46:28 +00:00
bb
8eecc39e71
Let the Gamesetup.cpp Autostart (starting from cl) use the gamesettings via the autostart gui page.
...
Comments and testing By: Langbart
Fixes #6433
Differential Revision: D4492
Includes/Obsoletes D4287
This was SVN commit r26584.
2022-03-06 21:12:16 +00:00
Stan
9ce9273c35
Add quotes to the logged filenames.
...
Differential Revision: https://code.wildfiregames.com/D2212
This was SVN commit r26546.
2022-03-05 18:30:38 +00:00