Commit graph

624 commits

Author SHA1 Message Date
Skyth
1821fae71e Update pipeline cache. 2024-12-01 14:06:32 +03:00
Skyth
e7494667ad Use readerwriterqueue for SDL2 audio. 2024-12-01 13:55:50 +03:00
Sajid
d51ba31f27
Merge pull request #11 from hedge-dev/sdl2-audio
Implement SDL Audio
2024-11-30 23:32:17 +06:00
Skyth
1a53a3b463 Rename the RHI. 2024-11-30 18:20:56 +03:00
Sajid
de9726c7d0 XAudio2 cmake option 2024-11-30 17:00:34 +06:00
Sajid
019d889306 SDL audio cleanup and volatile callback 2024-11-30 16:32:18 +06:00
Skyth
63b8a1e130 Check for triangle fan support when precompiling pipelines. 2024-11-30 12:18:13 +03:00
Sajid
5cd694fac6 Default to SDL audio 2024-11-30 12:03:14 +06:00
Dario
a15daa4150 Restore ShaderRecomp commit. 2024-11-29 17:53:24 -03:00
Darío
3215e47279
Implement installer with support for ISO, STFS and SVOD. Also implement XEX Patcher. (#5) 2024-11-29 17:47:30 -03:00
Skyth (Asilkan)
d36aa26bac
Specialization constants, reverse Z and async PSO implementation. (#9)
* Specialization constant implementation for Vulkan.

* Implement DXIL library linking.

* Implement proper reverse Z & fix motion blur flicker.

* Mirage API mapping.

* Initial work for async PSO.

* Further async PSO work.

* Set pipeline names.

* Handle special layers writing depth.

* Handle bones in shadow pipeline.

* Fix additive mode setting wrong pipeline field.

* Pass models to compilation threads through shared pointers.

* Safety improvements.

* Allow DXIL linking to happen in parallel.

* Display more debug information.

* Queue unique models for compilation immediately.

* Put async PSO debug printing behind a macro.

* Kick off terrain models to pipeline compilation thread the moment they are made.

* Hook a different function to do waiting in.

* Fix pipelines getting dropped.

* Account for ConstTexCoord.

* Fix async PSO accounting for alpha to coverage even when MSAA is off.

* Remove "has bone" specialization constant.

* Sky shader compilation & more debugging helpers.

* Assign names to shaders during loading.

* Fix string symbol definitions.

* Print description of recently compiled render thread pipelines.

* Switch to an enum library that doesn't murder IntelliSense.

* Precompile pipelines for object icons.

* Skip fur pipelines.

* Skip printing info for pipelines compiled during loading.

* Precompile pipelines for Sonic's mouth, motion blur, and forced transparent objects.

* Precompile planar reflection shaders.

* Precompile sparkle shaders in loading screens.

* Precompile fur shader.

* Refactor model traversing to enqueue every single compilation to worker threads.

* Dynamically create pipeline threads depending on hardware concurrency.

* Fix MSAA depth resolve not accounting for reverse Z.

* Integrate smol-v.

* Implement PSO caching.

* Update ShaderRecomp & remove unused function.
2024-11-29 23:30:48 +03:00
Skyth
349f07cf77 Fix sizeof/offsetof assertions. 2024-11-25 18:29:15 +03:00
Skyth
49b0dbe4db Auto generate SWA.h, add offsetof/sizeof asserts. 2024-11-25 16:48:58 +03:00
Hyper
8f525b571b
Implemented guest-to-host function pointers (#7)
* Implemented guest-to-host function pointers (WIP)

Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>

* function: support more types for function pointers

* api: ported BlueBlur headers and misc. research

* Move over function-pointers changes from options-menu branch.

---------

Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
2024-11-25 13:50:10 +03:00
Skyth
a908780de8 Remove vendor parameter from CMakePresets.json that breaks IntelliSense. 2024-11-24 16:53:18 +03:00
Skyth
6ae0ecd58e Switch to using CMakePresets.json. 2024-11-24 13:44:00 +03:00
Skyth
f7d4f93ba0 Implement brightness slider & color correction. 2024-11-21 23:00:15 +03:00
Skyth
cffefcdbf3 Use global instead of function provided delta time in cmaera HFR patches. 2024-11-20 10:54:22 +03:00
Skyth
e403f961aa Cherry pick of global delta time from 'options-menu' branch.
Co-authored-by: Hyper <34012267+hyperbx@users.noreply.github.com>
2024-11-20 10:39:58 +03:00
Skyth
2fd26cfd80 Fix freeze in latest Clang version. 2024-11-17 21:01:00 +03:00
Hyper
1117cbe33e window: make Japanese title uppercase 2024-11-17 15:59:12 +00:00
Michael
e405887c0e video_patches: don't adjust CSD aspect if UIScaleMode is Stretch 2024-11-16 16:02:02 -08:00
Hyper
118c2f3ce2 config_detail: move implementation to cpp, relocate sources 2024-11-15 21:21:43 +00:00
Hyper
b354c6123d config: make definitions global 2024-11-15 19:57:44 +00:00
Hyper
784d3973f4 git: move ignore rule for ./res/win32/ to res directory 2024-11-15 02:22:44 +00:00
Hyper
c9b6a6913f Fix loading screen speed at high frame rates 2024-11-12 19:55:00 +00:00
Skyth
3080412dc0 Change spin lock release functions to do an interlocked exchange. 2024-11-11 20:18:12 +03:00
Skyth
043c9e039b Update ShaderRecomp submodule. 2024-11-11 19:57:23 +03:00
Skyth
5ecc397639 Fix Chip not appearing transparent in "To The Surface" cutscene. 2024-11-11 16:01:25 +03:00
Skyth
cc2727d068 Fix vertex declaration not getting set in guest device. 2024-11-11 15:51:59 +03:00
Hyper
4d9e835c88 Update window icon dynamically for Werehog 2024-11-10 22:47:11 +00:00
Hyper
f1d633c8a5 config: use raw pointers for definitions 2024-11-10 18:27:31 +00:00
Hyper
f157b21d67
Implemented SDL event listener class and HUD toggle key (#4)
* Implemented SDL event listener class

* Add HUD toggle.

* frontend_listener: clean-up

* window: invoke all listener callbacks at once

* window: use raw pointers for listeners

* Rename WindowListener to SDLEventListener, reduce virtual functions

---------

Co-authored-by: RadiantDerg <jayvier13@gmail.com>
2024-11-10 21:23:36 +03:00
Hyper
21fc80798e Ignore XML exception to allow invalid DLC XMLs to parse 2024-11-10 12:50:51 +00:00
Skyth
05e09ba7e2 Implement ImGui. 2024-11-09 21:47:50 +03:00
Hyper
dabda369ca patches: move XButtonHoming hook to player_patches 2024-11-09 14:54:44 +00:00
Skyth
0962560ec9 Add triangle list fallback path for triangle fans. 2024-11-08 22:03:26 +03:00
Skyth
329d51885d Negate the game's reverse Z implementation. 2024-11-08 20:18:54 +03:00
Hyper
ec5c51f54c
Migrate game.cpp to categorised source files (#3)
* Migrate game.cpp to categorised source files

Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
Co-Authored-By: Michael <15317421+ActualMandM@users.noreply.github.com>

* Move motion blur hook to video_patches.cpp

---------

Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
Co-authored-by: Michael <15317421+ActualMandM@users.noreply.github.com>
2024-11-08 16:18:41 +03:00
Skyth
4fa03e96b9 Add resolution patches for bloom glare & light shaft. 2024-11-08 13:34:17 +03:00
Sajid
cf300c8854 Make XAudio callback ABI compliant 2024-11-08 02:21:35 +06:00
Skyth
611a2c7c31 Add HFR patches for 2D camera slope sensitivity. 2024-11-07 15:10:36 +03:00
Skyth
0400c79628 Add D3DXFillTexture implementation for the 1x1 white texture. 2024-11-06 23:56:51 +03:00
Skyth
220da348f8 Update ShaderRecomp submodule. 2024-11-06 13:38:29 +03:00
Skyth
182b5bebc2 Hold a pointer to provided shader blob instead of cloning it in D3D12. 2024-11-06 13:33:15 +03:00
Skyth
d8512fd6b7 Add motion blur toggle. 2024-11-06 00:47:16 +03:00
Hyper
fabc1ffbc7 window: fix abnormal window states erroneously saving dimensions 2024-11-05 14:37:07 +00:00
Hyper
9e2edfe8cd Merge branch 'main' of https://github.com/hedge-dev/UnleashedRecomp 2024-11-05 12:47:39 +00:00
Hyper
02e0f1e0d2 Remove unused register from Werehog battle music hook 2024-11-05 12:47:28 +00:00
Skyth
88c7b8b8d5 Add player 2D camera HFR patches. 2024-11-05 15:17:31 +03:00