Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
FPSDoctor
Client-side FPS optimization for large bases, lighter weather and effects, FSR upscaling, and optional frame generation (ANR / NVIDIA DLSS-G) with DLSS, switched live in the game's settings.
By MOXY1337
| Date uploaded | 2 weeks ago |
| Version | 0.23.0 |
| Download link | MOXY1337-FPSDoctor-0.23.0.zip |
| Downloads | 15 |
| Dependency string | MOXY1337-FPSDoctor-0.23.0 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
FPSDoctor
Client-side FPS optimization for Valheim, with special care for big bases.
- Big bases draw faster and load faster. No pieces fall while a base loads.
- AMD FSR upscaling is added to the game's own graphics settings.
- Optional frame generation and DLSS (Windows, DirectX 12): ANR or NVIDIA DLSS frame generation x2-x6, DLSS / FSR 2.2 upscaling, all switched live in the game's graphics settings. See Frame generation and DLSS below.
- No trails behind moving objects: DLSS uses its newer preset M, and the game's ambient occlusion (SSAO) keeps its soft look without its temporal smearing.
FPSDoctor doesn't change the world or the gameplay for other players. It is safe on vanilla servers and when only some players have it. Every part has its own switch in the config.
Frame generation and DLSS (optional)
An optional module, installed separately with ANR/Install-ANR.cmd (Windows, DirectX 12, tested on an RTX 5070). It needs two archives you download yourself: ANR FG V.B18 full (github.com/apex-compute/ANR) and Valheim Universal Upscaler 2.7.4 Manual (Nexus Mods). Full instructions: ANR/README.md.
In Settings > Graphics, applied with OK, without a restart:
- Upscaling method: NVIDIA DLSS, AMD FSR 2.2 or None, with quality from DLAA / native AA to Ultra Performance, and the render resolution shown before OK.
- Frame generation: Off, x2-x6 (NVIDIA DLSS-G: up to x4).
- Generation model: ANR (Apex Neural Rendering) or NVIDIA DLSS frame generation (RTX 40/50).
Details:
- DLSS uses preset M for every quality mode: the runtime default (K) left trails behind moving objects in dark scenes, and frame generation repeated them. M is heavier at DLAA (about 4 ms a frame on an RTX 5070); Balanced or Quality give nearly full FPS without trails.
- With None, frame generation is not started (without an upscaler it only slowed the game down). It is read when the game starts: after switching to or from None, restart for full speed or to use frame generation; the game tells you.
- HUDFix is always on. OptiScaler's own menus (Insert, F3/F10) are disabled; Page Up still shows its FPS overlay.
ANR/Restore-ANR.cmdundoes the setup from its backups and keeps your later config changes.
Ambient occlusion without trails
The game's SSAO smooths itself over past frames without accounting for motion, so its darkening trailed behind moving things. FPSDoctor turns that temporal filter off and uses a stronger spatial blur instead (Graphics.SsaoTemporal = Soft): the same soft look, no trails. Vanilla, Reduced, Light and Off are also available.
What it changes
Build pieces and bases
- Faster drawing. Build pieces are drawn in shared batches by area of the base, with the same meshes, materials, LOD and shadows. Highlight, damage, wear and building work as usual.
- Fast, smooth support and collapses.
- Support is worked out for a whole building at once, with the game's own formula.
- A collapse plays out in seconds instead of minutes, without long frame spikes.
- Pieces that nothing happens to don't run the game's wear check every second.
- Bases load quickly and safely.
- Supports first. Every piece remembers its support and what it rests on. When you fly up to a base, its pieces appear from the foundation up, each one right after the piece under it. The part around you is there in 1–2 s.
- Quick load. A big base (~20 000 pieces) loads in about 13 s, with half as many heavy frames as the game's own loading. The pace drops while you fight.
- Nothing falls while a base loads. A piece whose support is still loading doesn't break. A real collapse still happens as soon as everything it depends on is there.
- Flying back to a base you just left: its support is known at once, no re-calculation.
- Distant details. Carpets, things hung on item stands, banners and similar parts disappear with distance together with the rest of the building. Vanilla left them hanging in the air.
- Hammer info. With the hammer, the hover text shows a piece's support margin and what it rests on.
- Collapse debris. Large collapses spawn fewer fragments at once.
Everything else
| Area | What it does |
|---|---|
| Weather | Storm particles (snow, ash, smoke) can't cover the whole screen any more. Ash storms and snowstorms run up to twice as fast and look the same from a distance. |
| Effects | Looping effects pause off screen and when far away and empty. Tiny far effects aren't drawn. |
| Vegetation | Grass is drawn in batches and rebuilt over several frames. Tree and grass shadows are drawn only nearby. |
| Loading the world | Objects, locations and terrain detail around you are created over several frames instead of in big bursts. |
| Scripts | Doors, animators, lava checks, physics syncs, the build menu, snapping, map pins and the object scan near bases do less needless work. |
| Memory | Less garbage, and memory is trimmed at quiet moments. |
| Blur | Motion blur and depth of field are always off, and their switches are removed from the settings (config: BlurOff). |
Off by default: hiding objects behind hills and walls (GPU / CPU occlusion). In our measurements it cost more than it saved. It can be turned on in the config (GpuOcclusion, OcclusionCulling).
FSR upscaling
Settings → Graphics → Upscaling algorithm gets:
- FSR 1.0: sharp spatial upscaling instead of the blurry bilinear stretch. It uses the game's 3D render resolution.
- FSR 3 Quality / Balanced / Performance / Ultra Performance: the AMD FSR 3.1 temporal upscaler, which also does the anti-aliasing. The mode sets the render resolution itself (shown in the list, for example "FSR 3 Quality (960p)").
The UI always stays at full resolution.
Install
Use r2modman / Thunderstore Mod Manager (Import local mod, this zip). Or copy FPSDoctor.dll and fpsdoctor_shaders side by side into BepInEx/plugins/FPSDoctor.
Requires BepInExPack Valheim. Config: BepInEx/config/moxy.fpsdoctor.cfg. Log: BepInEx/LogOutput.log.
Credits and license
- FSR: AMD FidelityFX FSR (MIT), via the FSR3Unity port by Nico de Poel (MIT).
- Frame generation module: OptiScaler (GPL-3.0) in the build shipped with ANR by Apex Compute, modified by FPSDoctor; the modified binary comes with its full corresponding source (
ANR/FPSDoctor-OptiScaler-source.zip). Valheim Universal Upscaler by kewb. NVIDIA DLSS / Streamline runtimes come from the user-supplied archives. Microsoft Detours (MIT) in the bridge. - Built with the help of an AI coding agent (Claude by Anthropic, in Claude Code).
- FPSDoctor's own code: MIT license (
LICENSE). Third-party licenses are included next to their parts.
FPSDoctor (по-русски)
Оптимизация FPS для Valheim на стороне клиента, с особым упором на большие базы.
- Большие базы рисуются и грузятся быстрее. Пока база грузится, детали не падают.
- Апскейлер AMD FSR прямо в настройках графики игры.
- Генерация кадров и DLSS (по желанию): ANR или NVIDIA DLSS-G ×2–×6, DLSS / FSR 2.2, всё переключается в настройках графики без перезапуска. Устанавливается отдельно:
ANR/Install-ANR.cmd, подробности вANR/README.md. - Без шлейфов за движущимися объектами: DLSS работает на модели M, а затенение (SSAO) остаётся мягким без размазывания по кадрам.
Для других игроков ничего не меняется: ни мира, ни геймплея. Безопасно на обычных серверах и если мод стоит не у всех. Каждую часть можно выключить в конфиге.
Что меняет
Постройки и базы
- Быстрая отрисовка. Постройки рисуются общими пачками по участкам базы, с теми же моделями, материалами, LOD и тенями. Подсветка, урон, износ и строительство работают как обычно.
- Опора и обрушения быстро и без рывков.
- Опора считается сразу для всей постройки по формуле самой игры.
- Обрушение проходит за секунды, а не минуты, без долгих подвисаний.
- Детали, с которыми ничего не происходит, не проверяют износ каждую секунду.
- Быстрая и безопасная загрузка баз.
- Сначала опоры. Каждая деталь помнит свою опору и то, на чём стоит. При подлёте база появляется от фундамента вверх, каждая деталь — сразу после той, что под ней. То, что вокруг тебя, появляется за 1–2 с.
- Быстро. Большая база (~20 000 деталей) грузится примерно за 13 с, и тяжёлых кадров вдвое меньше, чем при загрузке самой игрой. В бою загрузка идёт медленнее, чтобы не мешать.
- Пока база грузится, ничего не падает. Деталь, опора которой ещё грузится, не ломается. Настоящее обрушение всё равно происходит, как только загрузится всё, от чего оно зависит.
- Возврат к базе, от которой только что улетел: опора известна сразу, ничего не пересчитывается.
- Мелочи вдали. Ковры, вещи на стойках, флаги и подобное пропадают с расстоянием вместе с остальной постройкой. В обычной игре они оставались висеть в воздухе.
- Подсказка молота. При наведении молотом видно, сколько у детали запаса опоры и на чём она держится.
- Обломки. При больших обрушениях меньше обломков разом.
Остальное
| Что | Что делает |
|---|---|
| Погода | Частицы снега, пепла и дыма больше не закрывают весь экран. Пепельная буря и метели до 2 раз быстрее, издалека выглядят так же. |
| Эффекты | Зацикленные эффекты спят вне экрана и вдали. Крошечные дальние эффекты не рисуются. |
| Растительность | Трава рисуется пачками и перестраивается по частям. Тени деревьев и травы только рядом. |
| Загрузка мира | Объекты, локации и детали земли вокруг создаются понемногу за несколько кадров, а не рывком. |
| Скрипты | Двери, аниматоры, лава, физика, меню строительства, привязка, метки карты и обход объектов у баз делают меньше лишней работы. |
| Память | Меньше мусора, память подчищается в спокойные моменты. |
| Размытие | Размытие при движении и глубина резкости всегда выключены и убраны из настроек (конфиг: BlurOff). |
Выключено по умолчанию: скрытие объектов за холмами и стенами (окклюзия). По нашим замерам она стоила дороже, чем экономила. Включается в конфиге (GpuOcclusion, OcclusionCulling).
FSR
Настройки → Графика → «Алгоритм масштабирования»:
- FSR 1.0: чёткое растягивание вместо мыла.
- FSR 3 Quality / Balanced / Performance / Ultra Performance: временной апскейлер AMD. Сам выставляет разрешение и делает сглаживание.
Интерфейс всегда в полном разрешении.
Установка
r2modman / Thunderstore Mod Manager → импорт локального мода (этот zip). Или положить FPSDoctor.dll и fpsdoctor_shaders в BepInEx/plugins/FPSDoctor.
Нужен BepInExPack Valheim.
CHANGELOG
0.23.2
- When the game was started with upscaling None (frame generation not started), changing the generation model no longer waits 15 s for a live switch that cannot happen: it says the change applies after a restart. The restart notes are shown in the middle of the screen.
0.23.1
- NVIDIA DLSS-G offers x5 and x6 too (the shipped frame generation 310.9.16 supports up to 6X on RTX 50; RTX 40 does 2X).
0.23.0
Release of the 0.19-0.22 work (optional frame generation module) with these final changes:
- No trails behind moving objects: DLSS preset M for every quality mode; SSAO "Soft" (no temporal filter, stronger spatial blur) by default.
- Frame generation model ANR or NVIDIA DLSS-G, switched live; multiplier list per model (NVIDIA up to x4).
- Upscaling None runs at full speed (frame generation is not started with it).
- No stutter when turning the camera at big bases under DirectX 12 (paced index uploads, LOD / shadow hysteresis).
- The F4 test layer is a developer tool (DeveloperMode only). License: MIT for FPSDoctor's own code.
0.22.14
- SSAO Soft is the default: looks like the game's 80% temporal filter, without its trails behind moving objects.
0.22.13
- SSAO mode Soft: no temporal filter (no trails) and a stronger spatial blur (radius 4, 2 passes, softer edges), so grass shading stays soft as with the filter.
0.22.12
- SSAO temporal filter: new mode Light (5% history) between Reduced and Off.
0.22.11
- SSAO temporal filter is Off by default: no trails behind moving objects, and in testing no visible grain either. Vanilla / Reduced remain in
Graphics.SsaoTemporal.
0.22.10
- SSAO temporal filter setting (
Graphics.SsaoTemporal): Vanilla (the game's 80% history), Reduced (50%: shorter trails behind moving objects, a little more grain) or Off (no trails, grainy shading). Applies live; Shift+F4 cycles it for comparison.
0.22.9
- Fix: with upscaling set to None the game ran far slower than without the mod (108 instead of 260 FPS at the same spot, every frame held ~4.5 ms at present). OptiScaler's frame generation, kept ready for switching on live, waited for upscaler input that never came. It is no longer started when None is selected. OptiScaler reads this at launch: after switching to None the full speed comes with the next start, and after switching from None back to DLSS / FSR frame generation can be turned on after a restart (the game says so).
0.22.8
- Fix: trails behind moving objects in dark scenes with DLSS (also seen through frame generation, which works on the DLSS image). DLSS now uses preset M (second-generation transformer) for every quality mode instead of the runtime default K for DLAA / Quality, with auto exposure on. FSR 2.2 was not affected.
0.22.7
- F4 test layer: one white layer over the whole view (the world shows through it in white, trails are easy to see) instead of the barcode chart. Ctrl+F4: its motion vectors.
0.22.6
- Frame generation test chart: F4 shows a test picture fixed in front of the camera - a black square with white barcode lines and a white bar, beside a white square with black lines and a black bar; the bars travel left and right over the lines at a constant speed. It is drawn as world geometry (not UI), so frame generation processes it like the game image, and models and multipliers can be compared on the same picture. Shift+F4: bar speed (x0.25 / x0.5 / x1 / x2). Ctrl+F4: the chart's motion vectors (object / camera only / none). Key and white level in the
FgTestconfig section.
0.22.5
- The generation model (ANR / NVIDIA DLSS-G) changes with OK, without restarting the game. FPSDoctor's OptiScaler now keeps both models initialized; the mod switches frame generation off for a moment, selects the other model and switches it back on, and confirms when OptiScaler reports the new model as active. If that is not confirmed, the running model stays and the choice applies after a restart, as before.
- ANR offers x2-x6 whichever model the game started with.
0.22.4
- Settings > Graphics: new row "Generation model" - ANR (x2-x6) or NVIDIA DLSS frame generation itself (x2-x4 on RTX 50; needs an RTX 40/50). For comparing ghosting in dark scenes. The model changes when the game restarts; the multiplier is limited to what the running model supports. Updates keep the choice.
0.22.3
- Settings > Graphics: the render resolution row updates as soon as a quality or method is picked (before OK), computed exactly as VUP and Valheim size the render (it showed the menu's 853x480 target before).
- Settings > Graphics: frame generation is one row - Off, x2, x3, x4, x5, x6 (was an on/off row plus a multiplier row). Off remembers the last multiplier.
- Fix: frame drops (to 20-40 FPS) when turning the camera at a big base under DirectX 12. Turning the third-person camera moves it a few metres, so LOD and far-shadow decisions of many castle pieces flipped back and forth, and every flip re-uploaded index buffers of merged cells and multi-MB shadow groups the GPU was still drawing (15-45 ms each under DX12). LOD and shadow culling now have a 15% hysteresis, and uploads are paced: changes are written at once but each cell / shadow group is uploaded at most every 0.3 s, at most 2 cells and 1 group per frame. A piece that is destroyed or picked up still disappears at once.
0.22.2
- ANR FG V.B18 is the tested and recommended release (V.B15 is still accepted, with a warning). V.B16-V.B18 bring new model weights with fewer artifacts, a fix for a GPU crash when the multiplier changes during play (FPSDoctor's live x2-x6 switch), no drop to a few fps when ANR FG cannot start, and a signed provider.
- The OptiScaler source of V.B18 is identical to V.B15, so FPSDoctor's modified proxy is unchanged; the bundled corresponding source now names V.B18.
- Setup: the ANR version is detected from the archive checksum and recorded; the "download the archive" prompt no longer corrupts the entered path.
0.22.1
- The game's graphics OK always saves the game's own settings; an ANR / SR problem is reported instead of blocking OK. SR and FG are saved independently.
- A problem with the ANR files (missing bridge, other dxgi.dll, changed VUP) disables only the ANR controls for that session, with the reason in the log; every other FPSDoctor optimization keeps running. Patches already applied are removed again.
- A temporary Streamline error while switching FG (resize, alt-tab) no longer stops live control until restart; only an unknown option layout does. Unconfirmed changes are reported after 15 s in the world.
- Warning when the FG bridge has not attached after 60 s in a DX12 world (FG settings would not apply); a clear note in DX11.
- When DLSS or FSR 2.2 fails to start and OptiScaler falls back to FSR 2.1.2, the game says so immediately instead of a 30 s "not confirmed".
- None no longer queues a DLSS backend while VUP shuts SR down.
- Restore keeps FPSDoctor / VUP config changes made after installation: it undoes only the setup's keys (an untouched config is restored exactly, as before).
- Log note explaining VUP's expected "loaded DXGI module is not the packaged VUP host" warning.
- New tests: acknowledgement policy, bridge recovery after a runtime error, SR fallback code, restore after player edits.
0.22.0
- Apply DLSS / FSR 2.2 / None selections live with OK. Queue backend changes to the native render thread and confirm successful backend evaluation.
- Keep the presentation owner ready for re-enabling after None; actual FG is controlled by the live bridge.
- Include modified OptiScaler GPL-3.0 binary with full corresponding source, patch and build instructions. DLSS / FSR / None switching verified by the user in a loaded Valheim world; native logs acknowledge DLSS and FSR evaluation.
0.21.1
- Apply ANR on/off changes live with OK, with an acknowledgement from the runtime. Previously the switch only saved the next-launch preference and disabled the multiplier selector.
- Keep the presentation owner ready while the native bridge suppresses actual interpolation. This supports re-enabling after starting the game with the saved FG preference off.
- Extend native integration tests with saved-off startup and repeated real mode off/on submissions. Only SR method changes still require restart.
0.21.0
- Apply ANR 2x-6x multiplier changes live with the game's OK button. An owned native bridge updates the existing render-thread Streamline options and acknowledges successful submissions; no restart for multiplier-only changes.
- Keep restart requirements for changing SR methods or enabling/disabling FG. Keep HUDFix and existing graphics runtime binaries unchanged.
- Order methods as NVIDIA DLSS, AMD FSR 2.2, None.
- Include bridge source/build instructions and third-party MIT notices. Native tests exercise the actual hook against a fake runtime, including resources/viewport preservation, off state, ABI guards and concurrent requests.
0.20.7
- Replace automatic SR selection with None. None disables VUP reconstruction and the dependent ANR output while retaining saved quality/multiplier/FG preferences.
- Disable quality and ANR controls under None; rebuild controller navigation when availability changes. Previous automatic preferences migrate to DLSS.
- Preserve None across module updates and test that SR, forced scale and dependent FG stay disabled.
0.20.6
- Remove the static save/restart/HUDFix help row from graphics settings.
- Add AMD FSR 2.2 through OptiScaler to the method selector. Keep DLSS + DLAA as the default; update quality caption and Native AA label for FSR.
- Preserve the selected FSR backend across optional module updates. Method changes require restart; in-game FSR rendering validation is pending.
0.20.5
- Preserve Valheim's non-wrapping caption behavior for native zero-width labels, fixing vertical heading/help text.
- Populate the readonly resolution dropdown option and refresh its actual caption, fixing the empty resolution field.
0.20.4
- Build all reconstruction controls from complete native graphics rows, preserving their original caption/button positions and sizes. Remove custom horizontal coordinate calculations.
- Shorten quality captions, show native render dimensions in a disabled selector, and use compact native headings/help.
0.20.3
- Align SR/ANR captions and selectors with the native graphics columns. The scroll mask only bounds the controls column, so horizontal placement now follows native caption/slider geometry.
- Reduce row, heading and help heights to keep reconstruction controls compact.
0.20.2
- Resolve the graphics viewport through Valheim's serialized scroll reference, including inactive ancestors during initialization. Fix missing reconstruction controls when opening settings.
0.20.1
- Fix collapsed reconstruction controls in Valheim's zero-width graphics list. Size and center row content from the scroll viewport while preserving native vertical layout.
- Refit controls when viewport dimensions change and log measured control widths for verification.
0.20.0
- Reorganize reconstruction controls into named sections with one setting per row, aligned captions and selectors.
- Add native DLSS/automatic method and DLSS quality controls: DLAA, Ultra Quality, Quality, Balanced, Performance and Ultra Performance.
- Default the optional module to DLSS + DLAA at native resolution, with ANR enabled at 2x on first installation. Updates preserve saved SR and FG preferences.
- Show the current render/output resolution. Apply quality on OK through the loaded VUP configuration; method and FG changes require restart.
- Keep HUDFix always on and separate F3/F10 menus disabled.
0.19.1
- First ANR module install starts with FG enabled at 2x. Updates retain the player's on/off selection and multiplier unless explicitly overridden.
- Native Settings > Graphics controls: separate ANR on/off toggle and x2-x6 dropdown, game styling and gamepad navigation.
- Place both ANR controls immediately after the scaling-method row, before quality settings.
- Commit with OK; Back discards pending changes. Restart required to apply native FG settings.
- HUDFix always on. Disabled VUP F3 / OptiScaler F10 menus and removed F4 graphics panel / F8 FG shortcut.
- Persist FG in FPSDoctor config and the native preset; preserve other settings and rollback support.
0.19.0
- Optional ANR frame-generation setup using the user's verified ANR V.B15 and Valheim Upscaler 2.7.4 archives. Windows / DirectX 12; RTX 5070 test configuration.
- HUDFix preset, 2x through 6x selection, F8 FG toggle and F10 OptiScaler menu for compact keyboards.
- F4 graphics status/help panel, available without developer mode.
- Automatically yield FPSDoctor's separate FSR rendering and conflicting developer shortcuts when Valheim Upscaler is loaded. Existing CPU, weather, effects and base optimizations remain available.
- Explicit native installation with collision checks, verified backups, an installation journal, dry run and restore. No automatic downloads, antivirus exclusions, world edits or third-party graphics binaries in the public ZIP.