Commit graph

17291 commits

Author SHA1 Message Date
player701
a8fdaefe73 - Fixed random generation of friendly obituaries 2019-05-04 15:57:10 -04:00
alexey.lysiuk
8dbf356b73 - improved handling of HUDMSG_TYPEON
This includes the following changes
* Validation of serialized values
* Proper fix for message cut off after an empty line, part of https://forum.zdoom.org/viewtopic.php?t=63935, which appeared to be broken again with dbf06fc
* No crash with an empty HUD message, https://forum.zdoom.org/viewtopic.php?t=63761 and https://forum.zdoom.org/viewtopic.php?t=64569
2019-05-04 15:57:04 -04:00
alexey.lysiuk
f2d8eaef20 - brought back text length check for 'type on' HUD message
https://forum.zdoom.org/viewtopic.php?t=64569
2019-05-04 15:56:59 -04:00
Magnus Norddahl
8775d70e52 - fix vkGetQueryPoolResults: parameter dataSize must be greater than 0 2019-05-04 15:56:53 -04:00
Magnus Norddahl
32ec93b009 - call SetActiveRenderTarget before drawing the software renderer scene 2019-05-04 15:56:38 -04:00
Magnus Norddahl
a2d2c778ae - VMA_MEMORY_USAGE_CPU_TO_GPU does not require VK_MEMORY_PROPERTY_HOST_COHERENT_BIT to bet set. Current implementation requires this flag as vkFlushMappedMemoryRanges is never called. 2019-05-04 15:56:28 -04:00
Magnus Norddahl
35f6c17983 - fix vulkan crash when changing resolution when using the software renderer 2019-05-04 15:56:23 -04:00
alexey.lysiuk
a6354ea0db - fixed 'I' to 'i' upper-to-lower mapping
https://forum.zdoom.org/viewtopic.php?t=64526
2019-05-04 15:56:14 -04:00
alexey.lysiuk
937c25b764 - fixed saved game thumbnails generation with Vulkan renderer
GZDoom aborts with 'Failed to submit command buffer' error on saving a game when open source Intel Vulkan driver (part of Mesa 3D package) is used on Linux
This driver generates VK_DEVICE_LOST error when vkWaitForFences() is called with zero fence count. It must be greater than zero according to Vulkan spec
2019-05-04 15:56:08 -04:00
Magnus Norddahl
074fb10263 - use the exact sRGB->linear transfer function in HDR mode as the 2.2 gamma approximation is visibly inaccurate in this case 2019-05-04 15:55:57 -04:00
Magnus Norddahl
af362beef5 - implement stat gpu on vulkan and fix it on opengl 2019-05-04 15:55:51 -04:00
Magnus Norddahl
fd07e9977c - add VulkanQueryPool::getResults 2019-05-04 15:55:47 -04:00
Magnus Norddahl
1ff2bbc6f3 - add VulkanQueryPool and QueryPoolBuilder 2019-05-04 15:55:36 -04:00
drbugbait
e62d773525 Fixed offsets for Esperanto letters. 2019-04-30 15:02:28 -04:00
Magnus Norddahl
6c0907a960 - fix shutdown crash due to GetVulkanFrameBuffer returning null when VulkanFrameBuffer is destroyed 2019-04-30 15:02:18 -04:00
Magnus Norddahl
f498df9b1d - make the VkHardwareTexture and VKBuffer linked lists private 2019-04-30 15:02:12 -04:00
Magnus Norddahl
e210084f40 - release staging buffer after the frame it was used in 2019-04-30 15:02:06 -04:00
Magnus Norddahl
cf7d08b604 - this should be better for when vsync is off if I read the vulkan spec correctly 2019-04-30 15:01:54 -04:00
alexey.lysiuk
2c31d436e6 - postponed destruction of Vulkan resources
Provided uniform way to handle lifetime of some of Vulkan resources
This helps to avoid issues like descriptor set that outlives its pool

https://forum.zdoom.org/viewtopic.php?t=64341
2019-04-30 15:01:49 -04:00
alexey.lysiuk
2740645aa1 - tuned internal MoltenVK settings for better performance
See https://github.com/KhronosGroup/MoltenVK/issues/581#issuecomment-487293665
2019-04-30 15:01:42 -04:00
alexey.lysiuk
0e3da97bd9 - made Vulkan Cocoa view opaque
It is recommended to make content view opaque like NSOpenGLView
I didn't notice any difference in performance though
2019-04-30 15:01:36 -04:00
Magnus Norddahl
422f3fdd94 - the light storage buffer is not dynamic 2019-04-30 15:01:15 -04:00
alexey.lysiuk
ffdb3a8f49 - fixed deprecation warnings in core scripts
Script warning, "gzdoom.pk3:zscript/ui/statscreen/statscreen.zs" line 24:
Call to deprecated function CharAt
Script warning, "gzdoom.pk3:zscript/ui/statscreen/statscreen.zs" line 24:
Accessing deprecated function CharAt - deprecated since 4.1.0
Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 64:
Call to deprecated function ToLower
Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 64:
Accessing deprecated function ToLower - deprecated since 4.1.0
Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 65:
Call to deprecated function ToLower
Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 65:
Accessing deprecated function ToLower - deprecated since 4.1.0
Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 202:
Call to deprecated function CharAt
Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 202:
Accessing deprecated function CharAt - deprecated since 4.1.0
Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 235:
Call to deprecated function CharAt
Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 235:
Accessing deprecated function CharAt - deprecated since 4.1.0
2019-04-28 11:28:48 +03:00
Rachael Alexanderson
085732068b - This is version 4.1.0 2019-04-28 02:41:16 -04:00
alexey.lysiuk
3767a9aec1 - fixed missing null checks in JIT generated code
https://forum.zdoom.org/viewtopic.php?t=64307
2019-04-27 17:05:36 +03:00
alexey.lysiuk
dd7ec1fe44 - fixed crash on JIT allocations over 1 MB
https://forum.zdoom.org/viewtopic.php?t=64383
2019-04-27 14:36:55 +03:00
Christoph Oelckers
5f871b7aa0 - mark NewPlayerMenu as protected. 2019-04-26 12:54:57 +02:00
Christoph Oelckers
03828bb759 - removed the leftovers of the removed savedamount variable. 2019-04-26 12:00:58 +02:00
Christoph Oelckers
9dca095d08 - updated UFMF-spec for UTF-8. 2019-04-26 10:24:45 +02:00
Christoph Oelckers
3bb42aaff7 - removed the MaxAmount fudging from MaxHealth. 2019-04-26 09:58:58 +02:00
Christoph Oelckers
933ff805f1 - another text update. 2019-04-25 09:40:52 +02:00
Christoph Oelckers
15d2b47798 - fixed: RenderCommand::isCompatible failed to properly compare the SpecialColormap.
This resulted in always returning 'false' which prevented merging line draws, ultimately crashing the Vulkan renderer on a buffer overflow.
2019-04-24 20:35:10 +02:00
Nemrtvi
7ee64ce957 Batch of improved characters
Ò was inverted and therefore had inconsistent shading, which is fixed; Ů had darkened corners to give in to the umlaut, but was found to not be necessary; Љ and Л are both smoothened according to how the letter looks in the console font, and Џ is slightly shortened (to match up with the letter Q in terms of size).
2019-04-23 18:41:26 +02:00
alexey.lysiuk
6b5f7b4763 - destroy SDL window on Vulkan to OpenGL fallback
https://forum.zdoom.org/viewtopic.php?t=64412
2019-04-23 14:42:43 +03:00
Christoph Oelckers
23e2b1c0c0 - use Obituary for both Demon and Spectre. 2019-04-23 10:49:18 +02:00
Christoph Oelckers
cbb3e17267 - minor text update. 2019-04-23 10:42:41 +02:00
Christoph Oelckers
5122aa0571 - fixed the internal name of the original SmallFont to be different from the real SmallFont. This necessitated creating a separate font object, even if it has the same contents.
- added an OriginalBigFont as well.
2019-04-23 09:34:28 +02:00
Christoph Oelckers
e0d57e5464 - added smarter font replacement logic to the confirmation screen. 2019-04-23 08:47:06 +02:00
Nemrtvi
fb084a3150 Updated Russian characters
Previously, the characters И, Й, Ѝ and Я had the appearance of inverted versions of their Latin counterparts, N and R. With inverted shading, the letters turned out difficult to read; therefore, this commit reverts them to their old appearance (from the Russian Doom port, made by @JNechaevsky).
2019-04-23 07:51:30 +02:00
Nemrtvi
4a33f4f85b Sort language options
Reorders the languages to appear in alphabetical order, adds an English keyword, and adds an accent mark to Portuguese.
2019-04-22 19:20:45 +02:00
Christoph Oelckers
8357f2b16b - re-enabled code block commented out for testing. 2019-04-22 18:52:21 +02:00
Christoph Oelckers
e53fc83ef2 - text update. 2019-04-22 12:07:28 +02:00
Christoph Oelckers
90cc0cf35b Merge remote-tracking branch 'remotes/origin/vulkan2' 2019-04-22 11:43:43 +02:00
Nemrtvi
69035decf6 BIGFONT adjustments
Adds spacing necessary for the punctuation and redoes some of the punctuation marks entirely to be more faithful to the original Doom graphics.
2019-04-22 11:42:23 +02:00
Christoph Oelckers
0640a86c1e - removed InitPalette call from VulkanFrameBuffer constructor.
It is as wrong here as in OpenGL because it destroys already set up data.
2019-04-22 11:00:40 +02:00
Christoph Oelckers
ec13d0e4c1 Merge remote-tracking branch 'remotes/origin/vulkan2' 2019-04-22 10:45:32 +02:00
Christoph Oelckers
6f3982865f - refinement of font substitution logic. 2019-04-22 10:23:28 +02:00
Christoph Oelckers
e6ab678515 - fixed: The minimal window size was not calculated properly.
Minimum size is 640x400 client size not 640x400 window size in non-fullscreen.
2019-04-22 10:20:39 +02:00
Christoph Oelckers
e0a0be4f7b - added a CanPrint function to FFont and used that to handle the statistics display on the automap HUD to only replace the font when actually needed, not based on the language. 2019-04-22 09:08:43 +02:00
Christoph Oelckers
68c33a6e43 - fixed string prioritization when a mod replaces the default language for a given string.
In this case it must override all localized content from previously loaded WADs because that is no longer matching the original text.
2019-04-22 00:21:01 +02:00