Cameron Gutman
54283ce0a1
Rework session initialization to return to the Qt event loop while connecting
...
We also display multiple launch warnings at the same time
2025-11-22 17:09:16 -06:00
Cameron Gutman
379d5ca376
Fix some compiler warnings
2025-11-15 13:34:11 -06:00
Cameron Gutman
8ed7144751
Disable bitrate reporting until FEC accuracy issues are resolved
2025-11-15 12:22:51 -06:00
Andy Grundman
66b96e75af
Convert all time-based stats to be microsecond-based, improving accuracy of very fast events. Add bitrate average/peak.
2025-11-15 12:17:59 -06:00
Cameron Gutman
8324f61db0
Reduce per-frame GL calls in EGLRenderer
...
Uniforms are attached to the program object, so they don't need to
be set each time we swap between the YUV shader and the overlay
shader.
Since 0 overlays is by far the most common case and > 1 is highly
unlikely, move the glViewport() call into renderOverlay() to let
us skip it in the common case (and be no worse than today in the
2nd most common case of 1 overlay).
2025-11-06 17:52:30 -06:00
Cameron Gutman
9106f2c420
Disable the depth and stencil buffers
...
We don't have any need for either in our renderers.
2025-11-06 17:44:01 -06:00
Cameron Gutman
a2670dd568
Use hasFrameFormatChanged() in DRMRenderer
2025-11-06 00:04:08 -06:00
Cameron Gutman
c54e6e4459
Use hasFrameFormatChanged() in VDPAU
2025-11-05 23:58:51 -06:00
Cameron Gutman
dd6f1c5873
Use hasFrameFormatChanged() in SDLRenderer
2025-11-05 23:51:51 -06:00
Cameron Gutman
7fab5007a8
Switch Metal to the shared functions for CSC matrix generation and chroma co-siting
2025-11-05 23:22:15 -06:00
Cameron Gutman
7f7cc89e61
Switch EGLRenderer to the shared functions for CSC matrix generation and chroma co-siting
2025-11-05 22:27:31 -06:00
Cameron Gutman
7116efd8de
Switch D3D11VA to the shared functions for CSC matrix generation and chroma co-siting
2025-11-05 22:26:27 -06:00
Cameron Gutman
229f5e4cea
Add functions for color matrix generation and chroma co-siting in the renderer interface
2025-11-05 21:59:13 -06:00
ns6089
af37002a60
Select correct color matrix for 10-bit SDR
2025-11-05 00:13:25 -06:00
Cameron Gutman
181dba5864
Use correct chroma co-siting offsets in Metal
2025-11-04 23:51:39 -06:00
ns6089
fd314db27e
Use correct chroma co-siting offsets in D3D11
...
Introduced in f67272b153
2025-11-04 23:50:27 -06:00
Cameron Gutman
f67272b153
Handle chroma co-siting in the D3D11 shaders
2025-11-01 22:42:51 -05:00
Cameron Gutman
9b3050514b
Handle chroma co-siting in the Metal shaders
2025-11-01 21:57:13 -05:00
Cameron Gutman
2c12ad297f
Fix accuracy issues in YUV to RGB conversion of 10-bit content in Metal
...
See #1667 for details.
2025-11-01 19:19:19 -05:00
Cameron Gutman
50223dbdb8
Fix accuracy issues in YUV to RGB conversion of 10-bit content in D3D11VA
...
See #1667 for details.
2025-11-01 18:45:02 -05:00
Cameron Gutman
7d544c1ce4
Move audio capabilities out of the renderer classes
...
Since the removal of libsoundio, all renderers support arbitrary audio duration, so we can avoid having to start an audio session just to query capabilities.
2025-10-25 19:17:38 -05:00
Cameron Gutman
bd6235efba
Use async logging while streaming only
...
The benefits of reliable output outweigh performance concerns during non-streaming activities.
2025-10-25 00:18:34 -05:00
Cameron Gutman
c7bc76325f
Revert macOS audio buffer size workaround
...
This causes excessive glitching and needs to be fixed by Apple (if it hasn't already in the 2 years since the report).
2025-10-23 21:42:44 -05:00
Cameron Gutman
ccaca68570
Don't use CAMetalDisplayLink on Intel Macs
...
When in Direct mode, skipping a frame will cause the display to flash black on Tahoe.
2025-10-23 21:16:53 -05:00
Cameron Gutman
57db20016a
Rewrite frame pacing mechanism for VTMetalRenderer
...
This should hopefully improve performance and avoid performance issues on Tahoe.
2025-10-23 19:43:10 -05:00
Cameron Gutman
bdb6d02dac
Add (currently harmless) missing break
2025-10-22 23:21:07 -05:00
Cameron Gutman
9bcc6291be
Auto-lock the cursor in single display borderless windowed scenarios
2025-10-22 23:13:03 -05:00
Brad Smith
4ec549650d
Add fast AES detection for FreeBSD/OpenBSD on ARM/AArch64 using elf_aux_info()
2025-10-22 18:40:20 -05:00
Cameron Gutman
14027f3c74
Limit the IME workaround to Windows only
2025-10-20 23:37:31 -05:00
Qian23333
fb9a164111
feat: disable text input when window gains focus
2025-10-20 23:33:10 -05:00
Cameron Gutman
200cab9d17
Attach EDR metadata to Metal layer
...
This improves the accuracy of HDR streaming and enables HDR->SDR tonemapping.
2025-10-20 22:28:27 -05:00
Brad Smith
c52a57f0ec
build: Fix building on *BSD/riscv64
2025-10-20 21:21:00 -05:00
Cameron Gutman
c5ca672865
Don't set pix_fmt for hwaccel decoders
...
This works around a bug in the AV1 Vulkan decoding code in FFmpeg
that causes it to incorrectly skip hwaccel init.
Fixes #1511
2025-10-19 16:16:06 -05:00
Cameron Gutman
c0d38ee78f
Switch the decoder lock to a mutex
...
It can be held for non-trivial amounts of time.
2025-10-12 15:47:09 -05:00
Cameron Gutman
a20d429bc1
Remove usage of deprecated Metal API
2025-10-11 11:41:28 -05:00
Cameron Gutman
4189903233
Remove libsoundio audio backend
...
SDL has been the default audio backend for years now, and libsoundio has
not been well-maintained upstream.
2025-10-11 10:35:31 -05:00
armin-25689
1fd545ae1f
build: fix no <linux/dma-buf.h> for BSDs
2025-08-31 15:05:03 -05:00
Laszlo Racz
0c8354336b
Fix: Improve stream window resizing logic
2025-07-27 14:23:12 -05:00
Odizinne
65c04fd560
Added option to disable pre launch warning and delay
2025-07-04 15:04:10 -05:00
James Poje
9c9bfd8428
Add quit-app-and-exit shortcut Ctrl+Alt+Shift+E
...
Add a shortcut to quit the current app and exit Moonlight entirely.
2025-04-02 21:55:38 -05:00
ABeltramo
d9c7a245ef
DualSense adaptive trigger support ( #1561 )
2025-04-01 21:45:25 -05:00
rinsuki
fabb4fdadc
Fix INTERNATIONAL keys wouldn't work properly
...
since those keys aren't exist in US keyboard, we shouldn't treat (and convert) as a US keyboard keycodes (on Sunshine).
2025-02-19 22:18:34 -06:00
rinsuki
9491884cb4
Add some key definitions to support Japanese Keyboard Layout
...
Tested environment:
Moonlight on macOS 15.3 w/ MacBook Pro Internal Keyboard
Sunshine 2025.122.141614 w/ Windows 11 24H2
2025-02-19 22:18:34 -06:00
Cameron Gutman
bf51577787
Fix macOS build
2025-02-18 19:52:33 -06:00
Cameron Gutman
4c5bcee8dc
Give up immediately if the backend fails to initialize
2025-02-18 19:46:29 -06:00
Cameron Gutman
fd70865026
Avoid retrying renderer init if we know the error was not transient
2025-02-18 19:02:12 -06:00
Cameron Gutman
351aaa6759
Add an enum type for each renderer
2025-02-18 18:58:04 -06:00
Cameron Gutman
dd2a99a96b
Prepare for SDL3 support
2025-01-25 16:20:20 -06:00
Cameron Gutman
15e337fff8
Only call SDL_NumJoysticks() once per loop
...
It does non-trivial work when using sdl2-compat.
2024-11-12 23:52:31 -06:00
Cameron Gutman
4af9623727
Replace C++ VLAs with std::vector
2024-10-15 22:41:21 -05:00