Commit Graph

28859 Commits

Author SHA1 Message Date
CamilleLaVey 7e1fc154c7 [TEST] Quick corrections 2026-07-29 04:04:37 -04:00
CamilleLaVey 828220977b [TEST] depth clip enable implementation 2026-07-29 03:20:58 -04:00
CamilleLaVey 0684757788 [TEST] Debug viewport geometry 2026-07-29 02:30:30 -04:00
CamilleLaVey 30c44934e7 [TEST] Debug depths on viewports 2026-07-29 01:52:30 -04:00
CamilleLaVey 81efd5f1d1 [TEST] Adjustments on memory reclamations 2026-07-29 00:37:37 -04:00
CamilleLaVey c51b9fed0f [TEST] Rework Android CPU affinity/ threading 2 2026-07-29 00:27:04 -04:00
CamilleLaVey 5157251457 Revert "[android] Support Joy-Con D-pad buttons (#4225)" 2026-07-29 00:19:40 -04:00
CamilleLaVey 71b9d8d3df [TEST] Rework Android CPU affinity/ threading 2026-07-28 23:42:46 -04:00
CamilleLaVey b6959029ca [TEST] Adjustments on TransformFeedback 2026-07-28 23:12:30 -04:00
CamilleLaVey 81aaf67c97 [TEST] Adjustments on framepacing submit calls 2026-07-28 22:47:34 -04:00
CamilleLaVey 9289f5f55a [TEST] Refinements on RAII 2026-07-28 21:31:24 -04:00
CamilleLaVey b38556d4f6 [TEST] ASTC fixes 2026-07-28 19:57:34 -04:00
CamilleLaVey 1616d19279 [TEST] Miscellaneous changes 2026-07-28 18:38:14 -04:00
CamilleLaVey 40756bbc52 Lizzie get meowed, please. 2026-07-28 16:19:05 -04:00
CamilleLaVey 424eb62cdb [TEST] Adjusments on deferred destruction implementation 2026-07-28 16:07:59 -04:00
CamilleLaVey e755504ed8 [TEST] Overlap image on non implemented path 2026-07-28 14:36:49 -04:00
CamilleLaVey b5d82311f6 [TEST] Debug 3D image copy 2026-07-28 13:52:22 -04:00
CamilleLaVey 6b65b2b6fc [TEST] Fallback on TICEntry out of bounds 2026-07-28 13:12:28 -04:00
CamilleLaVey 7fcdd9c9e4 Meow 2026-07-28 12:17:35 -04:00
CamilleLaVey df681d1bd2 [TEST] Debug TICEntry shader pass 2026-07-28 11:20:23 -04:00
CamilleLaVey bee168c5fa [TEST] Adjust ternary on pipeline barriers 2026-07-28 11:12:41 -04:00
CamilleLaVey d754fef20e [TEST] Upload on depth MSAACopy pass 2026-07-28 03:38:25 -04:00
CamilleLaVey 0408db7adb [TEST] Adjustments on descriptors payloads 2026-07-28 03:08:46 -04:00
CamilleLaVey ead7505d00 [TEST] Smolios forever 2026-07-28 02:29:10 -04:00
CamilleLaVey 65568e320d [TEST] Test anti-smolios 2026-07-28 02:26:05 -04:00
CamilleLaVey 4154787b51 [TEST] debug MSAA texture missing handling 2026-07-28 01:55:25 -04:00
CamilleLaVey 6f3e1b4471 Revert "[TEST] Some miscellaneous changes within buffers queue and RAII deallocations" 2026-07-28 01:24:06 -04:00
CamilleLaVey 240b65d61e Revert "[TEST] Another miscellaneous change 2" 2026-07-28 01:23:39 -04:00
CamilleLaVey 461fa8ab6e [TEST] Another miscellaneous change 2 2026-07-28 01:09:16 -04:00
CamilleLaVey 0ef8acd602 [TEST] Some miscellaneous changes within buffers queue and RAII deallocations 2026-07-28 00:26:43 -04:00
CamilleLaVey dbf5ee4e1f [TEST] Keep tuning the drain/ memory allocation 2026-07-28 00:06:09 -04:00
CamilleLaVey e248832967 Fix build 2026-07-27 23:49:20 -04:00
CamilleLaVey 17167a27dc Fix license headers 2026-07-27 23:23:36 -04:00
CamilleLaVey a4bcb4a1e1 [TEST] Adjustments on memory collection 2026-07-27 22:39:10 -04:00
CamilleLaVey b9ec214553 [TEST] Adjustments on memory collection + removal dead code 2026-07-27 22:38:33 -04:00
CamilleLaVey 43b28d3731 [TEST] Refactor on memory collections 2026-07-27 21:38:15 -04:00
lizzie 39763e7321 [core/hle/services/am] nuke ButtonPoller and Mouse thread (#4229)
Signed-off-by: lizzie <lizzie@eden-emu.dev>

- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md)
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.

-------------------

doesn't even do anything now, please check if controller i/o is affected by this change
this should also fix latency issues with the mouse
the ButtonPoller thread isn't longer required since we update the state immediately with the .on_change callback registered

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4229
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
2026-07-26 05:11:03 +02:00
PavelBARABANOV e69415c07b [android] disable VP8 MediaCodec decoder due to crashes in Diablo II (#4231)
Hotfix, in the future an improved handling on VP8 will be introduced for Android.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4231
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
2026-07-26 04:24:04 +02:00
lizzie dc1486485b [core/hle/service] move 'loader'+'jit' to guest thread (#4148)
loader is barely called whereas audio for example is called super often
thus demote loaderr

jit is only ever used by Super Mario 3D stars, and no other
games require this to be a separate jit thread
additionally even of 3D stars this is called often chary
so no; we dont need a dedicated thread for it either way

this pr should help low power devices/devices with less cores/threads
to schedule the existing emulator threads more efficiently
also moving to guest means the CPU threads get more loaded with
stuffings, which is a good thing as most of the time theyre
sleeping and/or waiting for a mutex

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4148
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
2026-07-25 23:46:59 +02:00
lizzie f561a10bd8 [core/core] GPU initialize before CPU (#4228)
Signed-off-by: lizzie <lizzie@eden-emu.dev>

- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md)
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.

-------------------

should fix issue where vulkan dies trying to do locks or whatever, since CPU will infinitely stall or whatever
tl;dr: dynarmic is getting too good and outpacing initialization

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4228
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2026-07-25 23:34:22 +02:00
lizzie 6272f8ab24 [hle/service/am] make EventObserver use jthread() (#3971)
I don't remember why this wasn't done earlier, did I miss something or I purpousefully avoided this due to an issue?

Please test NO HANGS when opening/closing/playing

Signed-off-by: lizzie <lizzie@eden-emu.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3971
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-07-25 22:33:01 +02:00
lizzie eebb4bd91e [eden-cli] add extra CLI options -n/-x/-s (#4173)
from wasm PR:
- `--null-render/-n`: Forces the usage of the "Null" render backend irrespective of settings.
- `--filter/-x`: Sets the debug log filter irrespective of settings.
- `--singlecore/-s`: Forces single-core regardless of settings.

Signed-off-by: lizzie <lizzie@eden-emu.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4173
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-07-25 22:20:31 +02:00
lizzie 58dee53305 [fmt] use {#:x} instead of 0x{:#x} (#4170)
continuation of #309 but applying to even more files than before :)
also makes them lowercase because `0xfafafa` is better as `0XFAFAFA`

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4170
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-07-25 21:47:07 +02:00
lizzie 7b13113fbe [dynarmic] flatten terminal variants to not use recursive pointers (#4218)
take If{then, else} for example
100% of the time If{} only has a leaf terminal, supporting If{If{}, If{}} is very dumb and we don't need that
so remove that
this reduces
> The recursive_wrapper class template has an interface similar to a simple value container, but its content is allocated dynamically

aka. uses malloc and spams heap EVERYTIME A CONDITIONAL TERMINAL IS USED
thats bad tbf, i dont like it, removing it is better for general speedup
also we dont REALLY need if{if{if{if{}}}} support, like really

Signed-off-by: lizzie <lizzie@eden-emu.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4218
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-07-25 21:43:58 +02:00
crueter b9a88297cb [fs] fix crash on '#' comments in pchtxt patches (#4124)
Adds `#` as a valid pchtxt comment, and fixes a crash that could occur
when using odd-length values

This patch was sent by Adam Kittelson <adam@apathydrive.com>

Signed-off-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Cole Avenue <cole@melisand.re>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4124
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
2026-07-25 21:20:04 +02:00
Eden CI 0133caf702 [dist, android] Update translations from Transifex for Jul 25 (#4227)
Automatic translation update for Jul 25

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4227
2026-07-25 16:23:33 +02:00
crueter 9d60030af5 [android] Support Joy-Con D-pad buttons (#4225)
Closes eden-emulator/Issue-Reports#8
Closes eden-emulator/Issue-Reports#428

Currently, [Android's input layer](https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/android16-release/data/keyboards/Vendor_057e_Product_2009.kl#54) doesn't return `KEYCODE_DPAD_*` for the left Joy-Con, we fall back to the scan code in this case, this will also fix most third party Joy-Con controllers.

- The scan codes are not reliable and may vary from device to another. I searched for (0x220-0x223) values in the [android repo](https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/android16-release/data/keyboards) and they all have the same DPAD_* key mapping, so not a big issue just might cause future issues if Google change the mapping in another vendor. I could simply limit the fix to the [left Joy-Con](https://github.com/torvalds/linux/blob/master/drivers/hid/hid-ids.h#L1096-L1105) `if (event.keyCode == 0 && event.device.vendorId == 0x057e && event.device.productId == 0x2006)`.
- Auto mapping doesn't work, I'm not very familiar with the JNI Specification, I managed to implement the below workaround, it basically checks if it's the left Joy-Con and add the first four DPAD_* keycodes
  ```cpp
  // ./src/input_common/drivers/android.cpp
  ButtonMapping Android::GetButtonMappingForDevice(const Common::ParamPackage& params) {
      // ...
      const char *yuzu_device_name = env->GetStringUTFChars((jstring) env->CallObjectMethod(j_device, Common::Android::GetYuzuDeviceGetName()), &isCopy);
      const char *switch_left_string_name = "Nintendo Switch Left Joy-Con";
      bool is_switch_left = strncmp(yuzu_device_name, switch_left_string_name, strlen(switch_left_string_name)) == 0;

      std::set<s32> available_keys;
      for (size_t i = 0; i < keycode_ids.size(); ++i) {
          if (j_has_keys[i] || (is_switch_left && i <= 3)) {
              available_keys.insert(keycode_ids[i]);
          }
      }
      // ...
  }
  ```

Signed-off-by: crueter <crueter@eden-emu.dev>
Authored-by: Anas Bouzid <bouzid.anas.1@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4225
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
2026-07-25 15:09:16 +02:00
crueter f5d1a78846 Move PULL_REQUEST_TEMPLATE to a single file
Signed-off-by: crueter <crueter@eden-emu.dev>
2026-07-24 22:45:03 -04:00
crueter 5d3ad94e18 [meta] Add a pull request template for GitHub (#4226)
Requires contributors to GitHub to read the policy.

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4226
2026-07-25 04:40:57 +02:00
crueter 479df9809a [filesystem] Return ResultPathAlreadyExists from CreateDirectory if path exists (#4224)
Returning success when the path already exists confuses games like Eastward which use this result in their save logic.

Closes https://github.com/eden-emulator/mirror/pull/10

Signed-off-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Tom Pratt <tom.pratt@outlook.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4224
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2026-07-25 01:48:49 +02:00