Peak4KScreenshot
One-key 4K screenshots for PEAK. Press the hotkey to re-render the current view at true 4K resolution via URP offscreen rendering and save it as a PNG. Optionally keeps the in-game HUD in the shot.
By XiaoZhou
| Date uploaded | 2 weeks ago |
| Version | 1.4.2 |
| Download link | XiaoZhou-Peak4KScreenshot-1.4.2.zip |
| Downloads | 50 |
| Dependency string | XiaoZhou-Peak4KScreenshot-1.4.2 |
This mod requires the following mods to function
BepInEx-BepInExPack_PEAK
BepInEx pack for PEAK. Preconfigured and ready to use.
Preferred version: 5.4.75301README
Peak4KScreenshot — One-Key 4K Screenshots for PEAK
A BepInEx mod for PEAK. Press F4 to re-render the current view at 4K resolution and save it as a PNG.
The frame is not stretched or upscaled — the main camera is actually rendered again at 4K, so distant terrain, character silhouettes and other fine geometry are genuine 4K pixels instead of interpolated blur.
Features
- True 4K re-render — uses the URP offscreen rendering pipeline
(
SubmitRenderRequest+SingleCameraRequest) to render the main camera at 3840×2160 - Multiple resolutions —
UHD_4K(3840×2160),QHD_2K(2560×1440),DCI_4K(4096×2160),UHD_8K(7680×4320),Native(current game resolution) - Supersampling — render at 1–3× the target resolution and downscale for cleaner edges
- Optional HUD in the shot — keep the health bar, crosshair, item bar and name tags visible, or hide them for a clean capture
- No stutter — PNG encoding and file writing happen on a background thread
- On-screen feedback — progress and result shown in the lower-left corner
- Localized — follows the game language (English / Simplified & Traditional Chinese)
On-screen notifications are rendered with TextMeshPro using PEAK's own font, so Chinese text displays correctly instead of appearing as empty boxes.
Installation
- Install BepInEx
- Copy the whole
F4一键4k截图folder intoBepInEx/plugins/ - Start the game
Folder layout:
BepInEx/plugins/F4一键4k截图/
├── manifest.json
├── README.md
├── README.zh-CN.md
├── CHANGELOG.md
├── icon.png
└── plugins/
└── Peak4KScreenshot.dll ← the mod itself
Usage
Press F4 in game. By default captures are written to a Screenshots folder next to the
game executable:
PEAK/Screenshots/PEAK-4K-2026-11-07-14-32-08.png
Configuration
Config file: BepInEx/config/peak4k.screenshot.cfg
| Setting | Description | Default |
|---|---|---|
Resolution |
Capture resolution preset | UHD_4K (3840×2160) |
Hotkey |
Capture hotkey | F4 |
HideHud |
Hide the HUD while capturing | true |
SuperSample |
Supersampling factor (1–3) | 1 |
OutputFolder |
Output folder (relative to the game root, or an absolute path) | Screenshots |
ShowNotification |
Show an on-screen notification | true |
OpenFolderAfterSave |
Open the output folder after saving | false |
OrientationFix |
Orientation correction | None |
UiScaleMode |
UI scaling used when keeping the HUD | Auto |
All settings can be changed by editing the config file — no recompilation needed. Restart the game for them to take effect.
Supersampling (SuperSample)
Offscreen rendering happens at the target resolution, so SuperSample = 1 is already native
4K — it is not an upscale.
1(recommended) — render directly at the target resolution2— render at 2× and downscale with a box filter; cleaner edges, but slower and heavier on VRAM3— render at 3× and downscale; highest quality, most expensive
Keeping the HUD (HideHud = false)
Set this to false to keep the interface in the capture (health bar, crosshair, item bar,
player names, …).
PEAK's HUD canvases use Screen Space - Overlay, and URP does not draw Overlay UI into a
render texture when rendering offscreen (resolveToScreen is false). The mod therefore
temporarily switches those canvases to Screen Space - Camera bound to the main camera, so
they are rendered into the 4K texture, and restores them right afterwards.
The UI is not rescaled during this — PEAK's HUD uses a relative layout, so its proportions
already match the screen once the canvas is resized to the 4K viewport. If an element still
looks off, try UiScaleMode:
| Value | Effect |
|---|---|
Auto |
Leave the canvas scaling untouched (default) |
MatchScreen |
Scale the UI by render width / screen width (for fixed-pixel layouts) |
Orientation correction (OrientationFix)
If a capture comes out upside down or mirrored, change this setting — no recompilation needed, just restart the game.
| Value | Effect |
|---|---|
None |
No correction. Default, and correct as-is |
FlipVertical |
Flip top/bottom |
FlipHorizontal |
Mirror left/right |
Rotate180 |
Rotate 180 degrees |
Note: Unity's
EncodeToPNGalready converts the texture's row order (bottom-left origin) into PNG's row order (top-left origin), so the pixel buffer must not be flipped again manually — doing so would turn the image upside down.Noneis based on that behaviour.
Resolution presets
| Preset | Size | Notes |
|---|---|---|
UHD_4K |
3840×2160 | Standard 4K, 16:9 |
QHD_2K |
2560×1440 | 2K QHD |
DCI_4K |
4096×2160 | DCI 4K, cinematic |
UHD_8K |
7680×4320 | 8K — watch your VRAM |
Native |
Current game resolution | No upscaling at all |
Hotkey conflicts
F4 is already used by several other mods. If several actions fire at once, the result depends on load order:
| Mod | Setting | Purpose |
|---|---|---|
摄像机 (PeakSpectatorMode) |
Reset Near Self |
Reset to self while spectating |
sword末日 (TFAStatusTracker) |
ToggleHudKey |
Toggle the HUD |
waffl.AfflictionConfig |
Player Target Menu |
Player target menu |
BetterModVerifier |
RebuildWhitelistKey |
Rebuild the whitelist |
PeakWorkshop |
— | — |
If F4 behaves oddly or triggers multiple actions, change this mod's Hotkey (F5, F7 or
F9 work well — note that F6 and F9 are used by PEAK RANKED as well).
Edit BepInEx/config/peak4k.screenshot.cfg:
[Capture]
Hotkey = F7
Restart the game for it to take effect.
Compatibility
- Purely local rendering — no network data is sent, zero impact on other players online
- Does not modify the game assemblies; a plain BepInEx plugin
- Requires the URP offscreen rendering API (Unity 6 / URP 17), satisfied by PEAK v2.6+
How it works
- Determine the target resolution and supersampling factor
- If
HideHud = true, temporarily disable the HUD canvases — the same approach the game itself uses for its own screenshots (onlyenabledis touched, never the layout) - If
HideHud = false, temporarily switch Overlay canvases to Screen Space - Camera bound to the main camera, then wait a few frames so Unity rebuilds their meshes - Submit an offscreen render request and wait until the pipeline reports it as finished
(
SubmitRenderRequestis asynchronous — reading the pixels immediately would return garbage) - Read the pixels back, encode with
EncodeToPNG(which already flips vertically, so the buffer must not be flipped again) and write the file on a background thread - Restore every canvas to its original state
Building from source
Requires the .NET 8.0 SDK; the target framework is net472 (matching BepInEx 5).
Source location: PEAK/workbuddy/_tools/4k/src/
cd workbuddy/_tools/4k/src
bash build.sh # build + copy into the plugins folder
build.shexplicitly restoresLOCALAPPDATA/ProgramFilesand friends, which the sandboxed Git Bash strips — NuGet needs them during restore, otherwise it fails withValue cannot be null. (Parameter 'path1').
CHANGELOG
Changelog
All notable changes to this mod are documented in this file.
1.6.0
-
Added a Boost Quality option. When enabled, every graphics setting is temporarily raised to its highest level for the instant of the capture, then restored automatically:
- Shadow Distance → High (shadow distance 200, 2 cascades)
- Texture Quality → Native (no mipmap downscaling)
- World Quality → High (LOD bias 1.0)
- Render Scale → Native (100%, linear filtering)
- Ambient Occlusion → On
The settings are changed through PEAK's own settings objects, so the result is identical to picking the highest option in the game's graphics menu. Your original settings are restored right after the capture — the game menu shows them unchanged again.
-
F12 now opens the screenshots folder instead of a settings panel. The folder is created if it does not exist yet. The hotkey is configurable via
OpenFolderKey. -
The capture notification now shows whether maximum quality was applied.
1.4.2
- Fixed the on-screen notification never fading out. The notification was rendered with
TextMeshPro, which is a persistent object — returning early from
OnGUI(as is correct for IMGUI, where everything is redrawn every frame) left the text on screen forever. The notification is now drawn with IMGUI again, using a system font that contains Chinese glyphs, so both the positioning and the fade-out behave exactly as intended. TextMeshPro is kept as a fallback for systems where no suitable system font is available. - Fixed the notification text being clipped on the left ("Saved …" appeared as "ed …").
- The system font lookup now tries each candidate font name individually, so it still succeeds when some of the listed fonts are not installed.
1.4.1
- Fixed the on-screen notification not being rendered at all.
TextMeshProUGUIwas added to a bare GameObject, but UI components of TextMeshPro are only drawn when they are parented to aCanvas— without one, nothing is drawn. The mod now creates its own Screen Space - Overlay canvas (sortingOrder = 32000) and parents the text to it. - The plugin's own notification canvas is now excluded from the HUD handling, so it is never converted to Screen Space - Camera during a capture and never shows up in the screenshot.
- Added a fallback for the IMGUI path: when no TextMeshPro font can be resolved, a system font with Chinese glyphs (Microsoft YaHei / PingFang / Noto Sans CJK, …) is loaded instead of Unity's built-in Arial, which has no Chinese glyphs.
1.4.0
- Added language support for in-game messages and notifications. The plugin now follows the game language setting (English / Simplified & Traditional Chinese) and falls back to the system language. Log output and config file descriptions are localized as well.
- The on-screen notification is now rendered with TextMeshPro instead of IMGUI. Unity's built-in IMGUI font (Arial) has no Chinese glyphs, so Chinese text used to be drawn as a row of empty boxes. The mod now uses PEAK's own TMP font (which carries the Chinese fallback), so both languages display correctly.
- Translated the public documentation (README, CHANGELOG, manifest description) to English
so the submission passes moderation. A Simplified Chinese README is available separately as
README.zh-CN.md.
1.3.0
- Fixed wrong UI size inside captures. v1.2.0 added a
CanvasScalerwithConstantPixelSizeandscaleFactor = renderWidth / screenWidth, which scaled the HUD up several times (the health bar spanned the whole frame). PEAK's HUD uses a relative layout, so its proportions already match the screen once the canvas is resized to the 4K viewport — no extra scaling is needed. The default is nowUiScaleMode = Auto, which leaves the canvas scaling completely untouched. A newMatchScreenoption is available for fixed-pixel UI layouts. - Fixed the HUD size staying permanently changed after a capture.
EnsureScalerreturned the canvas's existingCanvasScaler, but the restore step destroyed it — removing the game's own scaler permanently altered how the UI is scaled. The plugin now distinguishes between scalers it added itself and scalers that were already there: existing ones only get their properties restored, only self-added ones are destroyed.
1.2.0
- Fixed blurry captures. v1.1.0 used
ScreenCapture.CaptureScreenshotAsTexture(superSize), but itssuperSizeupscales the backbuffer instead of re-rendering at a higher resolution (a 1600x900 window produced a 4800x2700 image that was visibly interpolated and soft). The plugin now renders through URP offscreen rendering, which produces genuine 3840x2160 pixels regardless of the window size. - Fixed the
planeDistancevalue. When converting an Overlay canvas to Screen Space - Camera, v1.0.x usednearClipPlane * 0.5, which places the canvas behind the near clip plane, so it was culled entirely and the UI could never be captured. It is nowmax(nearClipPlane * 2, 0.5). - Fixed hiding only part of the UI. Canvases in Screen Space - Camera mode are now hidden as well, not just the Overlay ones.
- Added startup diagnostics: the plugin prints the mode, layer, bound camera and size of every canvas in the scene after 60 frames.
1.1.0
- Switched the capture path to
ScreenCapture.CaptureScreenshotAsTexture. - Reworked logging to use BepInEx's
Logger.UnityEngine.Debug.Logcalled fromAwake()may not be written toLogOutput.logduring Chainloader startup, which made the plugin completely invisible while debugging. - Removed the
UseSuperSizesetting.
1.0.4
- Fixed a frame-ordering bug: a canvas does not rebuild its mesh immediately after its render
mode changes — that happens in the next frame's
CanvasUpdateRegistrypass. Submitting the offscreen render request in the same frame produced a capture without any UI. The plugin now callsCanvas.ForceUpdateCanvases(), waits a few frames, and only then submits the request.
1.0.3
- Added a temporary
CanvasScalerwhen converting Overlay canvases. PEAK's HUD ships without one (the scene contains zeroCanvasScalercomponents), so switching to Camera mode made the UI overflow the frame.
1.0.2
- First attempt at capturing the HUD by converting Overlay canvases to Screen Space - Camera.
1.0.1
- Fixed upside-down captures.
EncodeToPNGalready flips the texture vertically (Texture2D rows start at the bottom, PNG rows at the top), so flipping manually as well produced a net vertical flip. - Added the
OrientationFixsetting.
1.0.0
- Initial release: F4 hotkey, 4K capture through URP offscreen rendering, optional HUD hiding, PNG output written on a background thread.