mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
Rabbit nitpicks 3 and new MangoHud config
This commit is contained in:
@@ -72,6 +72,11 @@ RUN mkdir -p "${NESTRI_HOME}/.local/share/Steam/config"
|
|||||||
|
|
||||||
COPY packages/configs/steam/config.vdf "${NESTRI_HOME}/.local/share/Steam/config/"
|
COPY packages/configs/steam/config.vdf "${NESTRI_HOME}/.local/share/Steam/config/"
|
||||||
|
|
||||||
|
## MangoHud Config ##
|
||||||
|
RUN mkdir -p "${NESTRI_HOME}/.config/MangoHud"
|
||||||
|
|
||||||
|
COPY packages/configs/MangoHud/MangoHud.conf "${NESTRI_HOME}/.config/MangoHud/"
|
||||||
|
|
||||||
### Artifacts from Builder ###
|
### Artifacts from Builder ###
|
||||||
COPY --from=builder /artifacts/bin/nestri-server /usr/bin/
|
COPY --from=builder /artifacts/bin/nestri-server /usr/bin/
|
||||||
COPY --from=builder /artifacts/bin/bwrap /usr/bin/
|
COPY --from=builder /artifacts/bin/bwrap /usr/bin/
|
||||||
|
|||||||
48
packages/configs/MangoHud/MangoHud.conf
Normal file
48
packages/configs/MangoHud/MangoHud.conf
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
legacy_layout=false
|
||||||
|
|
||||||
|
# common
|
||||||
|
horizontal
|
||||||
|
horizontal_stretch
|
||||||
|
hud_no_margin
|
||||||
|
no_small_font
|
||||||
|
background_alpha=0.66
|
||||||
|
round_corners=0
|
||||||
|
background_color=000000
|
||||||
|
font_size=24
|
||||||
|
position=top-left
|
||||||
|
engine_short_names
|
||||||
|
|
||||||
|
# colors
|
||||||
|
text_color=DFDFDF
|
||||||
|
gpu_color=FF4E00
|
||||||
|
cpu_color=00AA00
|
||||||
|
engine_color=00AA00
|
||||||
|
vram_color=00AA00
|
||||||
|
ram_color=00AA00
|
||||||
|
frametime_color=FF4E00
|
||||||
|
|
||||||
|
# load colors
|
||||||
|
cpu_load_color=DFDFDF,DF964D,DF3D3D
|
||||||
|
gpu_load_color=DFDFDF,DF964D,DF3D3D
|
||||||
|
|
||||||
|
# GPU and VRAM
|
||||||
|
gpu_text=NESTRI
|
||||||
|
gpu_stats
|
||||||
|
gpu_load_change
|
||||||
|
gpu_load_value=70,90
|
||||||
|
|
||||||
|
vram
|
||||||
|
|
||||||
|
# CPU and RAM
|
||||||
|
cpu_text=CPU
|
||||||
|
cpu_stats
|
||||||
|
cpu_load_change
|
||||||
|
cpu_load_value=70,90
|
||||||
|
|
||||||
|
ram
|
||||||
|
|
||||||
|
# FPS and timing
|
||||||
|
fps
|
||||||
|
fps_metrics=0.01
|
||||||
|
|
||||||
|
frame_timing
|
||||||
@@ -402,7 +402,7 @@ func (sp *StreamProtocol) handleStreamPush(stream network.Stream) {
|
|||||||
slog.Debug("Stream push connection closed by peer", "peer", stream.Conn().RemotePeer(), "error", err)
|
slog.Debug("Stream push connection closed by peer", "peer", stream.Conn().RemotePeer(), "error", err)
|
||||||
if room != nil {
|
if room != nil {
|
||||||
room.Close()
|
room.Close()
|
||||||
sp.incomingConns.Set(room.Name, nil)
|
sp.incomingConns.Delete(room.Name)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -411,7 +411,7 @@ func (sp *StreamProtocol) handleStreamPush(stream network.Stream) {
|
|||||||
_ = stream.Reset()
|
_ = stream.Reset()
|
||||||
if room != nil {
|
if room != nil {
|
||||||
room.Close()
|
room.Close()
|
||||||
sp.incomingConns.Set(room.Name, nil)
|
sp.incomingConns.Delete(room.Name)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ export DISPLAY=:0
|
|||||||
# Causes some setups to break
|
# Causes some setups to break
|
||||||
export PROTON_NO_FSYNC=1
|
export PROTON_NO_FSYNC=1
|
||||||
|
|
||||||
# Sleeker Mangohud preset :)
|
|
||||||
export MANGOHUD_CONFIG=preset=2
|
|
||||||
|
|
||||||
# Make gstreamer GL elements work without display output (NVIDIA issue..)
|
# Make gstreamer GL elements work without display output (NVIDIA issue..)
|
||||||
export GST_GL_API=gles2
|
export GST_GL_API=gles2
|
||||||
export GST_GL_WINDOW=surfaceless
|
export GST_GL_WINDOW=surfaceless
|
||||||
|
|||||||
Reference in New Issue
Block a user