59 Commits

Author SHA1 Message Date
Nikos Chantziaras
430baf7c21
Add Linux GameMode support (#13339)
This can fix a lot of performance issues, like audio crackling and frame
time spikes. This requires the GameMode package to be installed. See:

https://github.com/FeralInteractive/gamemode

This commit adds a "Game Mode" bool option to the "Power
Management" and "Latency" settings sections, and it can be toggled
on/off without restarting RA.

The actual toggling of game mode happens in a new frontend platform
interface function. Perhaps this will become useful for other platforms
that provide some equivalent of Linux GameMode.

Since the GameMode ABI is fixed, and the API comes as a single,
header-only file with no actual deps, we simply bundle the header
(deps/feralgamemode/gamemode_client.h.) That way, all Linux builds will
have support for GameMode regardless of whether the GameMode development
package is installed or not.
2021-12-14 14:07:42 +01:00
twinaphex
5b3942eae7 * (PSP/Vita) Remove unused variables
* (Switch/libnx) remove dead code
* (Lakka/Switch/libnx) It was a mistake to include
  switch_performance_profiles.h inside lakka.h, it was creating warnings
for nearly every file. Instead, it gets optionally included for the
files that need it
2021-08-12 18:51:33 +02:00
twinaphex
a736dd27d2 (platform_switch) arg_data/args don't seem used anywhere
(switch_thread_audio) Pass correct type to function
2021-08-12 18:22:09 +02:00
M4xw
991b43d4ee [Libnx] Changed PSM Defines 2021-06-28 17:38:17 +02:00
p-sam
1bc588acbd Fix building with libnx 4.0.0 2021-06-28 17:38:17 +02:00
twinaphex
4c51e31b9d (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
David Guillen Fandos
a442696b71 First attempt at adding proper brightness
Supports Switch and OGA
2020-11-26 19:22:05 +01:00
David Guillen Fandos
f5693f15e7 Make get_lakka_version available in all builds
This simplifies a bit the code, for some new lakka patches to come.
2020-11-23 18:44:24 +01:00
twinaphex
3ac75c043e Jdgleaver improvements 2020-11-20 03:55:55 +01:00
twinaphex
9ee1e33e09 Only attempt to call dir_check_defaults once per runtime session
when calling the frontend environment get callback - we want to
look at the 'default' directories, and then if they don't yet exist,
auto-create them so we can store files in them.
2020-11-19 07:10:22 +01:00
twinaphex
599f338d74 Use strcpy_literal for string literals 2020-09-21 00:36:07 +02:00
twinaphex
00b4d62460 Cleanup 2020-08-26 19:37:07 +02:00
twinaphex
4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
twinaphex
855351de9e Reorder g_defaults, alignment 2020-08-16 04:38:02 +02:00
twinaphex
573f9e60c7 (libnx) Prevent some warnings 2020-07-31 10:54:57 +02:00
twinaphex
0d543baa4b (Drivers context) Move more static global state to structs 2020-03-07 18:21:49 +01:00
twinaphex
85c672a0f6 Settings pointer cleanups 2020-02-19 20:57:02 +01:00
twinaphex
2d274f1369 Move accessibility features to platform frontend driver 2020-02-14 00:17:55 +01:00
twinaphex
880391d0c5 (libnx) Try to silence warnings 2020-02-10 12:36:11 +01:00
twinaphex
85d64602ff Move retroarch_get_launch_arguments() function call outside
of frontend driver - should be called by Salamander too which
has no conception of RetroArch launch arguments
2020-02-01 17:42:18 +01:00
twinaphex
941b5f83f3 Prefer to use strlcpy/strlcat instead of strcpy/strcat 2020-01-30 22:14:50 +01:00
twinaphex
638b65c828 (platform_switch.c) Cleanups 2020-01-19 04:23:07 +01:00
Mats A
ef2ddf6912 fix breaking changes from the 3.0.0 libnx release 2020-01-06 13:12:00 +01:00
jdgleaver
569014c5d2 (Filebrowser) Fix file selection issues when starting from (or navigating to) the top level directory 2019-12-31 12:34:03 +00:00
rsn8887
c8c5b69b5e [SWITCH] Fix memory free and memory total reporting 2019-09-24 17:18:23 -05:00
twinaphex
473400902c Buildfix - apparently Switch memory reporting cannot be implemented
correctly
2019-09-25 00:08:28 +02:00
twinaphex
ed29c6f59c Start going for consistent memory representation - instead of
'memory used' needs to become 'memory free'
2019-09-22 03:57:59 +02:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
twinaphex
d37e610d70 (Switch) Stub this code out for now 2019-05-29 12:57:36 +02:00
twinaphex
fb22397835 (libnx) Turn rpng_load_image_argb into static function 2019-05-28 16:13:12 +02:00
twinaphex
ebefe374b5 (platform_switch.c) Cleanups 2019-05-28 16:12:06 +02:00
twinaphex
8850f0735c (LIBNX) Try to fix libnx 2019-05-28 16:10:22 +02:00
Huw Pascoe
685aabb094 video_layout config 2019-05-11 09:58:46 +01:00
M4xw
6bfa3fa807 [LIBNX] Better Horizon Ver. Detection
-Save the current Path via frontend_switch_process_args (fixes loader)
2019-04-29 18:14:21 +02:00
M4xw
ca80a3a4da [Libnx] Toolchain related changes
-Remove switch_pthread - It should be no longer used
-Increase SAVE_STATE_CHUNK to 4MB
-Fix overclocking on Horizon 8.0+

Note: This requires the updated Toolchain before Merge
2019-04-26 21:58:40 +02:00
Brad Parker
aa588dec35 set default language on first startup according to OS setting (initial *nix implementation) 2019-04-15 23:14:49 -04:00
jdgleaver
2c65068be0 More 'Log to File' Additions:
- Add optional timestamped log files

- Handle errors if log file cannot be opened

- Android: flush log file immediately

- 3DS: log to file tested and fully working

- Default log paths added for all platforms
2019-03-25 17:22:59 +00:00
Brad Parker
e22148fed4 show cpu model name in log, implemented for x86/64 on windows/linux so far 2019-02-23 16:50:42 -05:00
orbea
28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
Twinaphex
ac04c1bfc5
Merge pull request #7892 from Datamats/libnx_nwindow
libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api
2019-01-08 23:36:20 +01:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
Mats
462a4b24fd libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api 2019-01-07 15:03:44 +01:00
M4xw
8764d7be28 [LIBNX] Implement Over-/Downclocking and minor fixes 2018-11-29 18:42:44 +01:00
natinusala
9cad7135a9 libnx: implement focus gain and loss callbacks 2018-11-28 14:11:42 +01:00
natinusala
49082a8c80 libnx: enable video recording 2018-11-01 01:55:05 +01:00
p-sam
4c5c2170b6 libnx: call retroarch_main_quit on exit 2018-10-27 16:18:56 +00:00
natinusala
eac0d603f4 libnx: add network interfaces info 2018-10-12 17:37:03 +02:00
twinaphex
247b21b151 (platform_switch.c) Set retro_rating level to 11 - some minor
cleanups
2018-10-08 04:20:07 +02:00
lifajucejo
c39bc4ecab [LIBNX] Synchronize nxlink logging
- Logs were interleaved and caused instability on certain setups
2018-09-30 19:09:20 -04:00
M4xw
7a841eae24 [SWITCH] Change platform dir layout to match unix, fixes autodetect 2018-09-29 19:36:14 +02:00