Commit Graph

23913 Commits

Author SHA1 Message Date
echosys
587825f60a Fix x86_64 build for Android (#49)
Fixes x86_64 builds for Android by stubbing a function that calls into libadrenotools to query GPU driver information. libadrenotools is only available for arm64.
The function should not be called anyways, as the menu that would display the information is disabled on unsupported devices.

To enable x86_64 for building change the line `abiFilters += listOf("arm64-v8a")` in `src/android/app/build.gradle.kts` to `abiFilters += listOf("arm64-v8a", "x86_64")`.
I did not do this by default as it significantly increases the build time (the native part needs to be build once for each architecture) and increases the app size (this is less of a concern as games are already significantly larger).
It might allow usage on Chromebooks (the internet tells me those run on x86_64) and some few Android devices. The main advantage I see is for development of the app itself, as it allows running it in waydroid for local testing.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/49
Co-authored-by: echosys <echosys@noreply.localhost>
Co-committed-by: echosys <echosys@noreply.localhost>
2024-08-11 12:11:13 +00:00
anon
0719273fed Reorder configuration tabs (#32)
Co-authored-by: spectranator <spectranator@vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion>
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/32
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-08-10 13:28:05 +00:00
echosys
cd40133aa4 Be more explicit on struct init (#46)
Older versions of gcc (gcc-11 which is used in the build guide) seem to struggle with these two struct initializations (if I understand this correctly it is using "designated initialization" which is new in C++20) leading to compile errors (see #42).
This replaces those two initializations with a more explicit one that also compiles on gcc-11.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/46
Co-authored-by: echosys <echosys@noreply.localhost>
Co-committed-by: echosys <echosys@noreply.localhost>
2024-08-10 12:53:04 +00:00
anon
c8997e4ab5 Remove elements for removed buttons in web config (#31)
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/31
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-07-26 22:15:01 +00:00
anon
f38060714a Better text spacing in about dialog (partial #22) 2024-07-26 17:51:02 +02:00
spectranator
c92b9f9024 Automatically generate token (#22/#28)
Co-authored-by: anon <anon@noreply.localhost>
Co-authored-by: spectranator <spectranator@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/22
Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/28
2024-07-26 17:40:08 +02:00
anon
a1c2940b31 option to skip compiling the -cmd executable (#26)
There's already a `-DYUZU_ROOM` flag that can be set to OFF to skip compiling that executable.

This adds a `-DYUZU_CMD` flag that is ON by default, but can be set to OFF to also skip compiling the yuzu-cmd executable.

Setting both to OFF saves **_a lot_** of compiling time if you don't ever use either the yuzu-room or yuzu-cmd exes.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/26
Co-authored-by: anon <anon@noreply.localhost>
Co-committed-by: anon <anon@noreply.localhost>
2024-07-24 23:24:18 +00:00
echosys
a41955cc58 Remove early access Android app variant (#27)
Removes the early access Android app variant from the build config and removes the get early access button from the settings tab.

I also tried to remove the code for the variant (different logo + colors) and the code for the button, but I am no Android developer so I might have missed some stuff.
Additionally I did not touch the translation files.

Essentially this gets rid of the now useless fancy button and improves build times as it only needs to build one apk now.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/27

Spec's note:
Whatever there's left can still be removed at a later point.
Co-authored-by: echosys <echosys@noreply.localhost>
Co-committed-by: echosys <echosys@noreply.localhost>
2024-07-24 23:05:03 +00:00
echosys
7e27e6476d Add option to only optimize SPIRV during load (#13)
Adds a new option "On Load" to the "Optimize SPIRV output" option that turns on optimizations during the loading of the shader cache from disk, but turns it off after that.
The previous checkbox states have been named "Never" for unchecked and "Always" for checked.

The idea is that once the shader cache has most of the shaders in a game cached they can be optimized during initial game startup (where a performance hit matters less) and the few shaders that get compiled during runtime are not optimized to reduce performance hits.

Most of the commit is adding the setting to the Android app, the main logic is in the `gl_shader_cache.cpp` and `vk_pipeline_cache.cpp` files.

Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/13
Co-authored-by: echosys <echosys@noreply.localhost>
Co-committed-by: echosys <echosys@noreply.localhost>
2024-07-19 19:14:19 +00:00
spectranator
e3ea6f2059 Revert "Added abgr8 srgb to d24s8 conversion shader"
This reverts commit e8f43b7078.
2024-07-06 22:39:54 +02:00
mateomaui
93c9c33b9f revert changes introduced in EA3835 to audio sink auto-select, fixing stuttering in Diablo 3, etc (#3)
Reverts most of this commit (but not all, some parts are still needed, or were reverted already in later EAs): 39c8ddcda2 or 39c8ddcda2

Above commit to the audio sink was first included in EA-3835, changing the way an audio engine is auto-selected by lowest latency... but still doesn't work very well, often using cubeb when it should use SDL.

A side effect of this was that microstuttering was introduced in a few titles. In Diablo 3, the main player character appears to teleport forward a few steps, every couple of steps. It's a consistent, constant stutter when simply walking forward. Occurs for both SDL and cubeb, with cubeb noticeably worse.

3834 and 3833 didn't have this issue with SDL, and the commit above was the bulk of the changes for 3835. Reverting those changes back to the 3833 version has fixed the stutter (for me at least) in D3 as long as SDL is selected (cubeb still stutters). The only observed negative is the audio engine may need to be manually selected in global settings instead of using auto.

Also seems to have fixed intermittent microstutters in TOTK and RDR. Unaware of other titles this may fix, or possibly create a problem for (though creating issues probably is not likely.)
2024-07-06 20:38:09 +00:00
Jarrod Norwell
e8f43b7078 Added abgr8 srgb to d24s8 conversion shader 2024-07-06 20:38:09 +00:00
spectranator
a9f6342ea4 Added ILibraryAppletSelfAccessor::UnpopInData stub 2024-06-30 17:55:17 +02:00
Reg Tiangha
c432641245 MacOS: Fix Debugger namespace naming confilct 2024-06-30 15:18:24 +00:00
Reg Tiangha
ccd735ec8a hardware_composer.cpp: Add missing includes 2024-06-30 15:18:24 +00:00
spectranator
f064967e32 Fixed multiplayer lobby list (thanks to anonymous contributor!) 2024-06-30 17:14:51 +02:00
spectranator
39af5e51ff Revert "Removed web service reminiscents" in preparation to fix multiplayer lobby list
This reverts commit ffc907460f.
2024-06-30 16:54:56 +02:00
spectranator
002d0559f2 Updated onion site links 2024-06-10 19:41:41 +02:00
Jarrod Norwell
66ae161cf8 Stubbed QueryLastPlayTime 2024-06-01 15:22:10 +02:00
spectranator
e339153ede Updated Vulkan stuff for bug fixes and improved hardware compatibility (#21)
Fixes TOTK crashes on Steam Deck and potentially VRAM leak issues

Reviewed-on: http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu/pulls/21
2024-05-31 15:17:47 +02:00
spectranator
910ffe7c10 Ran clang-format 2024-05-31 10:19:41 +02:00
Jarrod Norwell
01d9c403f2 Added HDCP authentication state event and stubs 2024-05-31 10:02:07 +02:00
Jarrod Norwell
009aa57f4a Implemented LogicOp fix 2024-05-31 09:53:22 +02:00
Jarrod Norwell
ab9cdab883 Added ISslConnection::{Get,Set}NextAlpnProto stubs 2024-05-31 09:40:20 +02:00
Jarrod Norwell
3ade835323 Added missing error codes and increased audio renderer revision (fixes Animal Well) 2024-05-31 09:21:21 +02:00
spectranator
a96e97ea13 Simplified CoreTiming::GetClockTicks() 2024-05-19 15:39:21 +02:00
spectranator
2184968eb4 Applied clang-format 2024-05-13 23:11:32 +02:00
spectranator
ffc907460f Removed web service reminiscents
This will be undone (except for the analytics part) once a good reimplementation is available. I will include a configuration value for the server to use.
2024-05-13 23:03:36 +02:00
lol
e96b877ee2 fix qlaunch on firmware 18 (from Suyu 70c52a1914) 2024-05-08 20:55:18 +02:00
spectranator
377c9bc831 Implemented safer and faster way to get current mirror URL 2024-05-08 17:47:00 +02:00
spectranator
bef55d43a5 Removed old menu entries for pages that don't exist anymore 2024-05-08 14:30:57 +02:00
spectranator
08f47542e8 Added menu option to locate current mirror repository 2024-05-08 14:16:40 +02:00
spectranator
036a7edb2c Removed custom fibers implementation due to issues caused on Windows
Looks like the Windows ATL doesn't play along well at all. What a bummer.
2024-05-08 07:58:20 +02:00
spectranator
1df1841ad1 Disabled problematic MSVC warning-to-errors 2024-05-07 18:57:50 +02:00
spectranator
b242ac022c Fixed controller UI being cut off at the bottom 2024-05-06 01:12:46 +02:00
spectranator
934d816fd6 Changed about dialog and main window titles 2024-04-29 00:17:17 +02:00
spectranator
e49ac15049 Updated logo and name in preparation for flatpak 2024-04-28 23:23:39 +02:00
spectranator
2ad113f22c Added option to synchronize core tick speed to max speed percentage 2024-04-27 15:02:53 +02:00
Jarrod Norwell
e0e2a4c0c5 Rewrote mm:u to follow switchbrew.org documentation 2024-04-20 10:52:25 +02:00
darktux
47e20e1ae6 Fixed potential null-dereference in Fiber::DestroyThreadFiber() 2024-04-11 18:37:31 +02:00
darktux
ca068f6df2 Fixed non-external SPIRV-Tools linkage 2024-04-11 18:34:14 +02:00
darktux
fac1dbc7e6 Optionally optimize generated SPIRV with spirv-opt (#10)
Reviewed-on: http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/darktux/torzu/pulls/10
Co-authored-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
Co-committed-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
2024-04-10 22:04:09 +00:00
darktux
69dd658a0b 18.0.0 firmware changes from Suyu (plus formatting fixes) (#8)
This commit rolls in changes required for 18.0.0 firmware from Suyus codebase plus some formatting fixes.

Co-authored-by: Exverge <exverge@exverge.xyz>
Reviewed-on: http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/darktux/torzu/pulls/8
Co-authored-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
Co-committed-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
2024-04-10 11:19:34 +00:00
darktux
dfa2204aa2 Fixed crash when changing per-game backend from null 2024-04-08 01:48:22 +02:00
darktux
53ad973d6a Removed Fiber::YieldTo debug round counter 2024-04-08 00:40:46 +02:00
darktux
68ced8ab4f Disabled MCO_USE_VMEM_ALLOCATOR because standard stack size seems to suffice 2024-04-06 01:18:21 +02:00
darktux
69a4d26b1e Add SR_WScaleFactorXY/SR_WScaleFactorZ stubs for Prince of Persia (#5)
Pulled in and cleaned up from Sudachi

Reviewed-on: http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/darktux/torzu/pulls/5
Co-authored-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
Co-committed-by: darktux <darktux@y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion>
2024-04-05 23:04:37 +00:00
darktux
d02da8726d Remove accidental use of standard format instead of libfmt format 2024-04-05 01:58:30 +02:00
darktux
c5fe645224 Added v18.0.0 stubs and updated tzdb_to_nx 2024-04-05 01:58:30 +02:00
darktux
85baaf0ab1 Vulkan validation error fix.
Different image usage flags between image creation and image view
creation.
2024-04-05 01:58:30 +02:00