Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/compile_definitions/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ if(WIN32)
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_d3d11_native.cpp"
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_d3d11_on_cuda.cpp"
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_dynamic_factory_impl.cpp"
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_reconfigure.cpp"
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_reconfigure.h"
"${CMAKE_SOURCE_DIR}/src/nvenc/nvenc_utils.cpp"
)

Expand Down Expand Up @@ -155,11 +157,15 @@ set(SUNSHINE_TARGET_FILES
"${CMAKE_SOURCE_DIR}/src/input.h"
"${CMAKE_SOURCE_DIR}/src/audio.cpp"
"${CMAKE_SOURCE_DIR}/src/audio.h"
"${CMAKE_SOURCE_DIR}/src/adaptive_bitrate.cpp"
"${CMAKE_SOURCE_DIR}/src/adaptive_bitrate.h"
"${CMAKE_SOURCE_DIR}/src/platform/common.h"
"${CMAKE_SOURCE_DIR}/src/process.cpp"
"${CMAKE_SOURCE_DIR}/src/process.h"
"${CMAKE_SOURCE_DIR}/src/network.cpp"
"${CMAKE_SOURCE_DIR}/src/network.h"
"${CMAKE_SOURCE_DIR}/src/network_metrics.cpp"
"${CMAKE_SOURCE_DIR}/src/network_metrics.h"
"${CMAKE_SOURCE_DIR}/src/move_by_copy.h"
"${CMAKE_SOURCE_DIR}/src/system_tray.cpp"
"${CMAKE_SOURCE_DIR}/src/system_tray.h"
Expand Down
28 changes: 28 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,34 @@ editing the `conf` file in a text editor. Use the examples as reference.
</tr>
</table>

### adaptive_bitrate

<table>
<tr>
<td>Description</td>
<td colspan="2">
Allow supported Moonlight sessions to reduce the video bitrate during sustained network loss. Runtime
bitrate changes are currently supported by the Windows native NVENC backend. Recovery is gradual and
requires both a quiet period without new loss pressure and a fresh, healthy ENet RTT sample produced by a
reliable acknowledgement from Moonlight; the absence of FEC reports alone never permits an increase. The
controller never exceeds the bitrate requested by Moonlight or the configured `max_bitrate` ceiling.
Unsupported clients and encoders continue to use their fixed effective bitrate.
</td>
</tr>
<tr>
<td>Default</td>
<td colspan="2">@code{}
disabled
@endcode</td>
</tr>
<tr>
<td>Example</td>
<td colspan="2">@code{}
adaptive_bitrate = enabled
@endcode</td>
</tr>
</table>

### max_bitrate

<table>
Expand Down
Loading