Skip to content

Hunter Cam, by Kyo; plugins' menus in the game's own dialog; faster where the GPU has room (v0.2.35) - #248

Merged
droogie merged 100 commits into
masterfrom
release/v0.2.35
Nov 15, 2026
Merged

droogie merged 100 commits into
masterfrom
release/v0.2.35

Conversation

@droogie

@droogie droogie commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Draft. v0.2.35: based on master - v0.2.34 (#245) - with 100 commits on it. The headline is Kyo's Hunter Cam - a new official plugin that brings the camera close behind the hunter's shoulder or into first person - with camera plugins that give cutscenes back, the Quake plugin's crash at loads fixed, Resolution lists with each size's aspect ratio, Upscaling Off at a Resolution below the window drawing only the 3D at it and a live Text scale (Kyo's #247). It brings plugins' in-game menus as pages of the game's own options dialog, plugin API 29 - the world held still and stepped, input and the HUD a plugin's own, a look of its own - made for Nox-'s bbphoto, faster frames where the graphics card has room (uncapped on an RTX 4070: the Hunter's Dream 16-19% faster, Cainhurst 14-34%), a rare wrong picture, crash or GPU hang at loading screens fixed, the GPU's progress markers in loading screens, the setup window's Discord and Website buttons, its Connection card in a player's words and the account's relay switch, a connection test that tells no answer from blocked, Depth of field Off really off and its far blur alike at every Resolution, saves that no longer make File Explorer report "Location is not available", the Debug camera setting removed, plugins' controls that no longer clash, and a Windows profile recorded again at the final code. The photo mode plugin built on API 29 while this release was made is not in it: it goes to Nox-'s repository, where he carries it on.

Credit: plugin API 29's calls for the camera, the world, input and the picture were made for Nox-'s bbphoto - thank you, Nox-. Co-authored-by: Nox- is on 23 of the commits here - those that built the photo mode plugin on the API and shaped its panel, and the one that hands it to his repository - and the README's acknowledgements and docs/plugins.md name Nox- and link bbphoto.

The shader translator is unchanged, so v0.2.34's shader caches carry over: nothing compiles again after the update.

What's in it

Kyo's camera plugins, Resolution and Text scale (#247: 14 commits by Kyo, 13 of ours)

Credit: everything in this section but the fixes listed as ours is Kyo's work, from his pull request #247 - thank you, Kyo! His commits keep his authorship, dates and messages; where taking them onto this release changed a line, the commit says so, and his plugin ABI test's update is folded into the cutscenes commit that needs it, so every commit builds.

  • Hunter Cam, a new official plugin (plugins/hunter_cam/, Hunter Cam 1.3.4; off until turned on): the hunter seen from closer in. Over the shoulder: a close third-person camera behind the right or left shoulder, pulled in at walls by the game's own sphere cast, Tab swapping shoulders while playing, the wheel zooming it 15% a notch and the middle button resetting the zoom. First person (Z): the view from the hunter's eyes with only the arms and weapons drawn, the mouse turning it 80 degrees up and down, an optional head bob riding the view on the head's bone. Always face the camera keeps the hunter facing where the camera looks and strafing at full speed (the script answered as locked on), with X, items and the crosshair working there; the dodge is a roll or a sidestep in the stick's direction. Every setting is live. Built, packed and signed with the other official plugins (tools/package_plugins.sh, the Windows package's target, the portable and MSYS2 build scripts) and listed in docs/plugins.md.
  • Camera plugins give cutscenes back (include/bbhost_plugin.h, host/plugins.cpp, engine/loading.cpp): plugin API 29 ends with cutscene() - 1 while one of the game's cutscenes is asked for or playing - and on_view is not called during one, so no plugin's view replaces a cutscene's shots. Quake, Isometric and Hunter Cam hand the hunter, the camera, the body and the controls to the game for the cutscene's length and take them up again where it leaves the hunter. The three now need version 29 with that call, and say so on an older host.
  • Quake stops crashing at loads and cutscenes (plugins/quake/): it set the Restore Debug Dash hook aside even where that patch was not installed, then, letting go of the player, wrote the patch's jump into the error strings at 0x4d3b8e4 - a crash at the next movement step after a load, a lamp travel or a death. It sets the hook aside only where it is there now.
  • Warnings when camera plugins clash (host/plugins.cpp, host/plugin_ui.cpp): Quake and Isometric both on show a warning on both plugins' pages in the setup window and F9, and once in game as a banner.
  • Upscaling Off with a Resolution below the window draws only the 3D at it (engine/render_scale.cpp, host/options.cpp, host/render.cpp, host/textures.cpp): the game's post effects, the HUD and the menus stay at the window's size, as they do with TAA, FSR and DLSS; before, all of it was drawn at the Resolution and stretched. YEBIS's copy brings the 3D up linearly (its own sampler is nearest), and an upscaler that cannot run (DLSS on an AMD card) honours the Resolution the same way. BBHOST_RENDER_SCALE=0 keeps the old way.
  • Frame generation keeps generating with the HUD hidden (host/render.cpp): a frame whose HUD draws nothing takes its HUD-less picture at the display buffer's pass; frame generation used to switch off at the first such frame and stay off until the HUD came back.
  • Resolution lists show each size's aspect ratio - "(16:9) 1920x1080" in the setup window, F10 and the game's own PC Graphics list, grouped by ratio - and Game > Display has a Resolution row under Effect timing (the Graphics page's own setting; the card counts the row, so Performance mode is no longer cut off). The stored values stay plain WxH: saved settings are unchanged.
  • Text scale (Graphics, 50-100%; engine/graphics_patch.cpp, host/options.cpp): the size of the game's own text, changed while the game runs through a hook on Scaleform's FontMap::MapFont (0x40c240, installed with the 1.09 eboot's other patches): a menu takes the new size when it is opened again, the HUD after the next loading screen or a return to the title. It replaces the "50% Text scale" patch; a player who had that patch on starts at 50%.

Ours, from the review:

  • The old 50% Text scale file is passed over (engine/patch_manifest.cpp): a package unpacked over an older one keeps patches/text-scale-50.toml, and with it on, the patch's 0.5 was scaled again by the hook - the text at a quarter of its size. It joins the retired patch files; patch_defaults_test checks no file of that name comes back.
  • world_state's BB_WORLD_VIEW (version 29): set while a plugin's on_view moves the view - another camera has the picture, a free camera's. Hunter Cam gives the hunter back while another camera has the picture or another plugin holds the world: in first person the hunter's body stayed hidden in such a camera's pictures, and the mouse and keys that fly it also turned Hunter Cam's aim and swapped its shoulder. Quake holds the same way: a free camera over the running world flew by the same keys Quake moves the player with.
  • Quake and Hunter Cam leave a character that a load freed alone: Quake let go of the character it last held - after a lamp travel, the old player, freed by the load - writing its switches and reading its parts; a lamp travel from the Hunter's Dream to Central Yharnam crashed in Quake (the same code was in the earlier Quake). Hunter Cam's first person shows its hidden parts the same way now: only on the player still.
  • Hunter Cam warns beside Quake or Isometric, as those two warn of each other, and a plugin's page shows every clash it is in.
  • The camera plugins need version 29's cutscene(), refusing to load with a line that says so on a host without it.
  • YEBIS's linear stretch costs nothing at default settings: its check runs for every draw and now asks the render scale's flag first (one load) instead of comparing the pipeline's name.
  • Hunter Cam's frame asks nothing while it is off: loaded for everyone who has the file (it turns on while the game runs), its frame callback now returns at once while it is off, and its hook on the script's env queries passes every query on; turning it off gives the aim, the sites and the hidden parts back at once.
  • Text scale changed while you play no longer crashes as a cutscene ends (engine/graphics_patch.cpp, engine/font_handle_set.cpp): Scaleform keeps a movie's font handles in a set keyed by font name and flags, and a change made a second handle of the menus' font in the movies already made - the HUD's. The set's removal took the first entry with the handle's name, so freeing the old handle left it in the set, and the next lookup read it (a crash as the Hunter's Dream's cutscene ended, every time after a change). The removal now takes the entry that holds the handle itself; the stock game, whose sets never hold two of one name, removes as before. Text scale changes live only with this in place, otherwise at the next start.
  • Upscaling Off below the window's size lets the game's occlusion culling work (host/render.cpp): with the 3D drawn smaller, the game still draws its occlusion tests against the output-size depth, which the 3D no longer draws into. bbhost moves them onto the scene's own depth - but learned that depth only while an upscaler ran, so with Upscaling Off every test passed and nothing was culled: about 30% more draws in Central Yharnam, slower than drawing the full size, and the Steam Deck's 60 fps profile below 60. It now costs about what TAA costs at the same sizes.
  • The Steam Deck guide says what the 60 fps profile does now (tools/steamdeck/STEAMDECK.md): the 3D at 960x600 brought up by the game's own copy, the HUD, the menus and the post effects at the screen's 1280x800 - no longer the presenter's FSR 1, which has no smaller picture left to scale.
  • Hunter Cam's Sidestep goes in as a patch file does (plugins/hunter_cam/): the omni-roll's caves first and its jumps into the game's code last, all of them or none - before, a jump could go in ahead of its cave, or without it where a site was refused. Written at Hunter Cam's first frame, after Isometric has written its own as the game starts, so turning Hunter Cam off no longer takes Isometric's omni-roll away; a jump Modern Movement Lite takes out as it is switched off in the game is written again while Sidestep is on.

Plugin API 29 and the photo mode built on it (20 commits, four of them co-authored by Nox-)

  • Plugin API 29 (include/bbhost_plugin.h, host/plugins.cpp, engine/world_pause.cpp): what a photo mode needs from the host, so that one can be built without writing the game's code. world_pause holds the world with the game's own pause (the in-game update's two bytes, written by a hook at the update's entry while any plugin asks; frames go on being drawn and on_view called) and world_step lets a number of updates run - a frame advance; pad reads the controller as a plugin's own and pad_take keeps buttons, sticks and triggers from the game; world_state says whether a world is loaded, loading, in a cutscene, behind a menu or held, the session's role, the other players in the world and those on their way (the matchmaking room's members counted from the server's word that they joined); hud_hide leaves the game's HUD, menus and prompts out where the picture is put together for the screen (two copies of the 2D target a frame while a plugin asks, held only while the HUD is hidden); post_look sets the picture's look over the area's own each view (tone, vignette, depth of field, chromatic aberration, motion blur and fog); the panel API (BB_OPT_PANEL, panel_show, panel_state) puts a plugin's options up as pages over the game, driven by the controller, the keyboard or the pointer; option_set.
  • The photo mode plugin (plugins/photo_mode/ until this release's photo mode commit below): built on API 29 from Nox-'s bbphoto - a free camera over the world held still (Frozen), the hunter playing on (Static) or the world running (Live, the first hit holding the world again), the HUD out of the picture, a panel of six pages over the area's own look, only with nobody else in the world, nothing in it writing the game's code. It left the tree for Nox-'s repository at the end of this release; what it asked of the host stays.
  • No setup window by itself (host/plugin_ui.cpp): the setup window opens on its Plugins tab only for a plugin the player turned on ([plugins] <name> = true) whose settings they have not seen - a plugin on by default never opens it, so the first start after the update goes straight to the game as before.
  • bbphoto not loaded beside a photo mode (host/plugins.cpp): players who installed bbphoto keep it in their plugins folder; while a photo_mode plugin is there too and not switched off (photo_mode = false), the loader passes bbphoto by - by its file's name before loading it, and by the name it gives itself before starting a renamed copy - with a log line saying so, so the two never both answer L3 and P.
  • Depth of field through the lens (engine/graphics_patch.cpp): the areas blur by their own table of blur by depth, which a look's focus and aperture never reached; under the look's depth of field the table is the lens's circle of confusion (the blur in front of the focus included), and the area's table comes back at the next view without it, byte for byte.
  • The Debug camera is gone (host/options.cpp, launcher.cpp, ingame_menu.cpp, patch_manifest.cpp): the setting switched a patch manifest no package carried, so in every release it did nothing. An options file that saved it loads as before: the key is set aside (logged when it was On) and the next save leaves it out.
  • Controls each plugin's own (host/plugins.cpp, host/window.cpp, host/plugin_panel.cpp): input_as gives a plugin reads of the mouse of its own (photo mode, reading every frame for P, took them from the Quake plugin's mouse look), pad_take takes the plugin's name and input_take_as is one plugin's own take - the takes add up, and one plugin ending gives back only its own; a key or button held as a take ends stays taken until it is let go (the Escape that ends photo mode no longer opens the game's menu); a panel tells ImGui only of its own keys let go, so the menus' queue no longer fills while no panel is up. The Quake plugin holds while another plugin holds the world: photo mode's Frozen stops Quake's time with the world's.
  • The credit (README.md, docs/plugins.md): the README's acknowledgements credit Nox-'s bbphoto as what the plugin API's camera, world, input and picture calls were made for, and the plugins table points to his repository for a photo mode built on API 29.
  • tests/plugin_abi_test.c covers API 29; tools/api29_probe.c is the probe plugin the checks used (the photo mode plugin's own test left the tree with it).

API 29 refined for a photo mode (16 commits, co-authored by Nox-)

  • The frame advance (engine/world_pause.cpp): each world_step logs the updates it let run and the game time they took (four presses at the game's own 30: 66.7 ms of game time each before, 33.3 ms after the photo mode plugin went to one update a step). The plugin's own changes of these commits - its start by a press of L3 with the half-second hold as a setting, one frame a step, its Field of view row over all of -40 to +60 degrees - went with it to Nox-'s repository.
  • The HUD: hud_hide's -1 asks for the HUD shown, holding the player's own HUD option on while asked, and hud_hide's copy of the picture is made sampled as well, as the view every image is given requires.
  • Depth of field by distance (engine/graphics_patch.cpp, engine/look_math.h): post_look can place a depth of field by distance with the game's own ramps, sharp between two distances (BB_LOOK_DOF_RANGE), where the lens's focus and aperture could not say where the blur begins; its distances stop where a step of the game's blur table still moves the blur - 40 m, then everything past 50 m.
  • Motion blur keeps to the 8 samples the game's blur is built for (7 where the area interleaves them): a look asking for more than 9 stopped the picture while the camera and the panel went on.
  • The host's panel in the game's look (host/plugin_panel.cpp, host/game_font.cpp, host/game_menu_art.h): one size for a plugin, the game's menu letters, menu art and sounds - the art read from the player's own dump, nothing of it shipped. The game's own dialog (below) took its place; it stays as the fallback where the game cannot open the dialog.
  • look_math_test, game_font_test and game_menu_art_test are new.

Plugins' in-game menus (10 commits, two of them co-authored by Nox-)

  • Menus from a plugin's table (include/bbhost_plugin.h, host/plugin_menu.h, host/plugin_panel.cpp, docs/plugins.md): API 29, not yet released, grows in place - fields appended to BbPanel, calls added at the end of BbHostApi, nothing renamed. BB_OPT_MENU on a page's heading starts a menu named by its def, the pages after it its own in L1/R1 order, and F10's Plugins tab has an Open button for each; sub-pages (BB_OPT_SUBPAGE, BB_OPT_OPEN), rows set at run time (panel_rows), info, text and confirm rows (BB_OPT_CONFIRM: the game's yes/no). BB_PANEL_CORNER asks for the dialog at the bottom right with the world in view - photo mode asks for it; other menus are centred, the screen dimmed behind them. docs/plugins.md's new section, In-game menus, has the rules and a complete example (examples/plugins/menu, built with bbhost; a test fails when the docs' copy differs from the file).
  • Pages of the game's own options dialog (engine/plugin_dialog.cpp, engine/option_rows.h, engine/menu_assets.cpp): a plugin's menu opens in the game's options dialog, built by the calls the PC Settings pages use - the game's rows, cursor, scrolling, sounds, line help and key guide - with nothing of the game's code patched for it. The generated options movie gains two sections, PlugPage (centred, the screen dimmed) and PlugCorner (bottom right, smaller), opened through the menu flow from the frame hook; every language's messages gain the System menu's Plugins row, and the generator's version moves on so a movie an older build made is made again. Reached from that Plugins row (there while a plugin has a named menu), F10's Open button and panel_show. A BOOL is the game's On/Off row, a CHOICE its pair or a row Left and Right step through, numbers the game's slider; pages turn in the open dialog; a row's help is one line. Where the game cannot open it, the host draws its own panel instead, logged once.
  • Input: a centred page has it all; a corner page has the d-pad, Cross, Circle, L1 and R1 and the menus' keys, even when the plugin takes the controller from the game, and the sticks, triggers and other keys stay the plugin's (photo mode's camera flies). Escape goes back as Backspace does; the pointer works the rows. A centred menu keeps its cursor through a click outside it (on the laptop, a click in the world beside it took the focus, and the controller did nothing until the pointer clicked the menu again).
  • Closing: the game's own interruptions - a loading screen coming up, a cutscene starting, the character's death - close a centred menu as the player closes it (panel_state reads it closed), and a text box or a yes/no open on it goes with it; a corner panel stays (photo mode ends itself at a load or a cutscene as before).
  • Drawn when the picture is scaled up: with the game's Resolution below the window, the present's blit path recorded the menus only while F10 or the host's overlay was up, so a plugin's centred menu held every input with nothing of it on the screen; it records them while a plugin's menu is up too. A lit slider row shows the game's arrows either side, the one at the slider's end left out.
  • A corner page the game's menu flow takes comes back (engine/plugin_dialog.cpp, host/plugin_panel.cpp): the game closes the flow's open menu for its own reasons too - a load, and frame after frame while the hunter is dying - and a corner page opened then was closed at once and taken for the player's close. The flow's closes and pushes are counted, so a page the game took is told from one the player closed; it comes back once the flow is quiet a moment, its plugin not told, and the host draws it itself where the flow closes its menus frame after frame. A centred page the game took is closed as before, logged as the game's menu flow's close.
  • plugin_menus_test runs the host's panel through the world's states; plugin_menu_test and plugin_menu_docs_test are new; tests/plugins/menu_demo.cpp is the test plugin the checks used.

Photo mode to Nox-'s repository (1 commit, co-authored by Nox-)

  • Nox- carries photo mode on in his own repository (bbhost-photo-mode-plugin), where he improves it; bbhost no longer builds, packs or signs it: plugins/photo_mode/, its build target, its test and its lines in the package scripts and notes are gone.
  • Everything the host does for it stays: plugin API 29 whole, the in-game menus as pages of the game's own dialog, the Quake plugin's hold while another plugin holds the world, and the rule that keeps bbphoto from loading beside a photo_mode plugin that is not switched off.
  • docs/plugins.md's table points to Nox-'s repository for a photo mode built on API 29, and the README credits his bbphoto; a saved Debug camera setting is set aside with a log line.

Faster frames where the graphics card has room (3 commits)

  • A GPU-bound rest judged by the frame (host/gxvk_rest.h): the renderer's draw pool rests when the GPU is the limit and wakes to try again. Where the pool's own work is what makes the frame the GPU's, resting made the recording thread the limit again and the rest never learned it: on an RTX 4070 uncapped, the Hunter's Dream ran 204-208 fps working and about 170 resting, ten times in every 20 s. A rest the GPU began with no cap holding the frame now keeps the frame rate of the windows that began it; ended with the frame 8% slower, the pool works on and no GPU-bound rest comes for 40 s, then 160, then 240 (a loading screen starts over); at a cap nothing changes. Against the code before it, alternating, uncapped on the RTX 4070: the Hunter's Dream 179.4 -> 208.5 fps (+16.3%, p99 8.05 -> 5.94 ms), Cainhurst's courtyard 125.3 -> 162.4 (+29.6%), its roof 158.8 -> 181.3 (+14.2%), for 77-174 points more CPU there; at a 120 cap and at 60 the same; on the RTX 3070 Ti laptop under Windows, GPU-bound, the same.
  • Two lookups answered from the last within a run (host/run_lookups.h): the in-order draws repeated two lookups within a run of draws - the run's targets published for the pool's draws, and the end of the GX buffer a vertex record starts in, behind the buffer registry's lock - 0.10-0.24 and 0.10-0.34 ms a flip; each is answered from the last now while what it was made of is unchanged (a version the run's targets move, a generation the registry moves under its lock). BBHOST_RUN_LOOKUPS=0 looks both up every time; =compare checks every answer: none of 123 million differed (the RTX at 16 places and held to a 4 GB card's memory, the laptop, lavapipe). Uncapped on the RTX 4070: Old Yharnam +3.1%, the Nightmare of Mensis +3.3%, the sewer pit +2.6%, the process's CPU the same; at a 120 cap 5-15 points less CPU at five places.
  • Catch-ups that wait for the GPU outside the renderer's lock (host/gpu_catch_up.h, the GX block reclaim's and discard rename's decomps): when every block of a GX pool still waits on its label, the catch-up submits under the lock, waits for those submissions without it and retires them under it again; a wait that runs out (200 ms) waits under the lock as the flush did. With a 4 GB card's memory acted out on the RTX 4070 (every draw in order there): Old Yharnam 81.9 -> 99.3 fps (+21%), p99 17.7 -> 13.0 ms; the default path within the spread; a Radeon 680M and a Steam Deck the same.
  • run_lookups_test drives a model of the registry and the publication's slots against both lookups as they were (fourteen mistakes each caught), gpu_catch_up_test a model of the queue (eleven); the rest rule's test drives the Dream's sequence, a rest that runs as fast, a rest at a cap and a loading screen.

Loading screens: a rare wrong picture, crash or GPU hang (3 commits)

  • GX's tables ring (host/gx_tables_ring.h): the 128 MiB ring where a draw or dispatch places the tables its user data points at went round by size alone, and the draw pool's threads kept 64 KiB chunks of it across recordings, flips and rests. A pool that rested at a frame cap longer than a lap of the ring (two or three minutes at 60) placed its next tables - at a loading screen - over tables handed to later work since, and the GPU could read the wrong ones: another draw's descriptors, a wrong address, or a loop bound read from the wrong memory (a loading screen's particle simulation takes its loop count from a buffer). In a test build, 4,704 of 78,204 placements in 20 minutes went into chunks handed out again. Now the in-order placements go round the ring's first 112 MiB behind a serial guard, and the pool's draws place theirs in the last 16 MiB, in 1 MiB segments a pool thread owns, taken again only once what was spliced from them has run. The guard waited for the GPU 0 times in every run.
  • The homes' index (host/gxvk_homes_index.h): the draw pool's threads read the index of the live constant-buffer homes - a std::map the recording thread changes in place - without the renderer's lock, and a read while another thread inserts or erases can follow a node being rebalanced or freed: a crash, or an answer from neither the old index nor the new. The index also publishes now, for readers without the lock, the homes touching each 4 KiB page as immutable lists, and the pool reads those.
  • A home's pending copies are an atomic, written under the renderer's lock and read with acquire order (the pool's read was a data race on a plain integer, though the splice asks again in order).
  • Checked: under ThreadSanitizer on lavapipe (a fast-loading stress - the small-video-memory path, lamp travel between a Chalice Dungeon and the Hunter's Dream every 4 s - and a 40-minute uncapped tour), the reports in the homes' index, the pending copies and the tables ring are 0 with the changes; frame rates the same within the runs' spread (the RTX 4070, the laptop; at a 120 cap the process's CPU 1.6-4.9% lower; at 60 the same, on a Steam Deck too). gx_tables_ring_test is new.

The GPU's progress markers in loading screens (4 commits)

  • Written while a loading screen is up (host/gpu_markers.h, host/recorder.cpp): a player's RTX 2060 under Windows lost the device five times, four of them in or just after a loading screen, and no log said where the GPU was - the markers were off by default for what they cost in the world, and on only for the three starts after a loss. Now AMD's buffer markers (VK_AMD_buffer_marker, which NVIDIA's drivers have too) are written while a loading screen is up, by default, and nothing of them is written or done in the world: a window opens at the first submission after a loading screen came up and closes at the first one 200 ms after it went.
  • A device loss names the op the GPU stopped in (host/gpu.cpp, host/recorder.cpp): every op the recorder replays between draws - barriers, pass ends and begins, copies, fills, clears, queries, buffer updates, binds and pushes, descriptor updates, the host's own dispatches, list packets - is noted in a ring of 4096 the report reads back by number, with a top-of-pipe marker before those where the GPU's front end stops or the pass changes; the report names the op, not only the draw before it.
  • The draw pool goes on committing with the markers on: its commit refused every draw while they were on, so a marked start drew everything in order - another path than the one whose losses the markers are meant to name. A pool draw needs no marker of its own (its splice is an op the recorder notes). NVIDIA's checkpoints still keep the pool off.
  • The self-tests write their log (main.cpp): the command stream's and the options file's self-tests left with std::_Exit before the log was written; each turns the log on before it runs.
  • Measured on an RTX 4070 under Linux, ten lamp travels between a Chalice Dungeon and the Hunter's Dream with the markers in the loading screens: the pool committed 78.3% of 469,376 draws in the loading screens and 86.0% of 1.8 million in the world, refusing none for its configuration. The loading times are in the gate below. gpu_markers_test is new.

The connection test (2 commits)

Players saw the setup window's connection test say "UDP is blocked on this network" while the website's test passed: the website's test is the browser's own packets, counted where they arrive; the setup window's runs from bbhost.exe on the game's P2P port and needs the answers back, so a firewall or antivirus stopping bbhost.exe fails it alone - and the card blamed the network.

  • It sends again for six seconds (net/nat_probe.cpp, net/nat_job.cpp): unanswered requests go again at 0, 0.3, 0.8, 1.6, 2.8 and 4.2 s (up to 1.6 s before), so a security program holding bbhost.exe's first packets while it asks about them no longer fails the test; the port check's later sends go only while no answer at all has come, so the server's port-check answers go as far as before. A send the system refuses is counted and goes again; when every send is refused, the exchange ends there. The log line counts the packets sent and refused, still without addresses.
  • The card tells no answer from blocked (net/nat_check.h's reading_of and card_of): no answer reads "No answer reached bbhost" (a firewall or antivirus on this PC, or the network - signing in and testing again tells which); signed in, a kept "blocked" with no answer reads "Nothing from bbhost reached the server", a kept "direct" or "relay" with no answer "The server hears bbhost, but its answers don't reach it", every send refused "This PC did not let bbhost send" with the system's error, and a kept "blocked" though the test ports answered "The server did not see this test from your address" (a VPN or proxy). Before, a test without answers said "UDP is blocked on this network", signed out too. docs/online.md has the readings.
  • Measured on the Windows laptop against a LAN test listener running the server's test code, with WFP block filters on bbhost.exe: no filter, direct with incoming open; an inbound block, direct with incoming closed; an outbound block and the answers dropped, "No answer reached bbhost" where v0.2.34 said "UDP is blocked on this network". In a Linux router namespace with the server's code, signed in: the answers dropped, "The server hears bbhost, but its answers don't reach it" (v0.2.34: "Direct connections: yes"); UDP dropped both ways, "Nothing from bbhost reached the server"; the sends refused by nftables, "This PC did not let bbhost send".
  • Tests: nat_check_test covers the new schedule, every send refused and every reading's words, and that no answer never says the network blocks UDP; 53 hand-made mutants of the two commits' logic each fail it.

The card's words quoted here are these two commits'; the setup window's commits below put every reading in a player's words.

The setup window (5 commits)

  • Discord and Website buttons over Play on every page (host/links.h): the community's invite and thehuntersdream.com, each opened in the browser and each saying in its bubble what it opens; only those two addresses open, and a test's window never opens a browser (launcher_links_test).
  • The account's relay switch (net/sign_in_check.h): the server lets a player turn the relay off for their account (the website's account page); the sign-in check reads whoami's RelayDirect, and the Connection card has a switch for it that posts to /auth/profile as the website's form does and then shows the server's answer; a server without it says nothing, and the switch stays hidden (sign_in_check_test).
  • The connection test finds this PC's own address on its network - the one a router forwards a port to - shown on the card and never logged, and whether another program has a UDP port, for the P2P port setting to refuse a port another program has.
  • The Connection card in a player's words (net/nat_check.h's card_of): one headline beside a status icon - "Online play works directly", "... through the relay", "Something is blocking bbhost", "Online play is blocked", "Answers aren't reaching bbhost", "A VPN or proxy may be in the way", "The test was incomplete" and others - one sentence on what it means for co-op and PvP, and the one thing to do (allow bbhost.exe in the firewall or antivirus, sign in and test again, turn off the VPN, forward the P2P port, choose another port); the details stay closed until opened, the P2P port and the relay switch under them. With the relay on (the live server's default), a direct result reads "Your network allows direct connections" and "The relay is on, so co-op and PvP go through it". F10's line repeats the headline; nat_check_test has each case word for word.

Networking (1 commit)

  • P2P datagrams over 1,200 B leave as pieces of whole chunks again (hle/net.cpp); BBHOST_NET_SPLIT_DATAGRAMS=0 sends them whole. net_p2p_test and net_p2p_whole_test are new.

Saves (1 commit)

  • Where two folders cannot be swapped - Windows, and Linux on a file system that refuses the exchange (exFAT, vfat, NFS) - a save's commit moves its files in one by one (hle/save_commit.cpp, hle/system.cpp): a marker listing the stage's files is written whole or not at all, each file is moved over the save's own (on Windows tried again for about 5 s while another process holds it), the files the game deleted are removed, then the marker and the stage. The save's folder is never renamed or removed, so File Explorer open in it no longer reports "Location is not available" - each save used to rename it away and remove it, and the game saves at every menu close. The recovery before a mount finishes a commit whose marker is in place and drops a stage without one; a move refused for good leaves the save readable from the stage. Linux with the exchange keeps its one step; v0.2.32-v0.2.34's leftovers are still finished, and older versions' recovery reads the new marker as one that keeps the save. save_commit_test kills a child process at every step of a commit and of its recovery: the save is all of the old one or all of the new one, byte for byte.

Depth of field Off really off (1 commit)

  • Off zeroed the blend of one composite - the world's faint far blur at 1080p - while YEBIS's others (a smaller picture's, the cutscenes', a strong blur's multi-level composites) went on blurring, and every pass before them went on running. Off now clears the post-process block's own depth of field switch in the YEBIS record hook, beside bloom, vignette and saturation, so YEBIS's depth of field is never called; On leaves the area's value alone, and a change applies at the next view. On an RTX 4070 at 1080p, Off has none of the depth of field's draws in the world or in a cutscene and saves 0.06-0.13 ms of GPU time a frame; On draws as before.

Depth of field's far blur at every Resolution (1 commit)

  • YEBIS blends each depth of field level's blurred picture in by t = clamp(k * CoC + b): k grows with the picture's height (the circle of confusion is measured in pixels), b does not, so the areas' faint far blur faded out below 1080 lines (none at 640x360, two thirds of it at 720p) and came out about 18% stronger at 1440p. The levels' offsets now scale by height / 1080 at the entry of CDepthOfField's aperture-filter levels, right after the game writes the levels' factors afresh, so nothing compounds - only where the view draws a side with one level (the areas' own far blur), only in the world's view, and not while a cutscene plays (a cutscene's blur and photo mode's multi-level lens keep their look by themselves). Nothing changes at 1080 lines, or with Depth of field Off, where YEBIS never calls the levels.
  • The far region's visible change at a common 640x360 view, against 1080p's: 360p 0 -> 0.87, 720p 0.67 -> 0.94, 1440p 1.19 -> 1.04, 2160p 1.13 -> 0.97; at 1080p the frames and the draws match the previous build's. With an upscaler the height is the picture's YEBIS works at (FSR 3 Performance at 1440p: 0.78x, the upscaled picture carrying 20% less far detail before the blur). BBHOST_DOF_1080_LOOK=0 keeps YEBIS's offsets.

The Performance patch's three dead sites (1 commit)

  • Three sites of the built-in Performance patch turned calls of GX's texture copy in the scene renderer into NOPs - copies the world's view never makes (it draws in mode 2, where other copies fill the same targets every frame). They are left out of performance_v3_sites.inc: one less patch over the game's code, nothing visible changes; the patch defaults test checks them.

The Windows profile (3 commits)

  • Why, three times. The repository's profile was recorded at v0.2.34's code. This release's first commits made it miss 41 of bbhost's functions (draw_impl's 84.6 billion counts among them), so it was recorded at that code; the renderer's draw pool, the homes and the plugins' menus then made that one miss 90 (101.3 billion counts), so it was recorded again; Kyo's Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247 and the Upscaling Off fix touched draw_impl, the plugins' frame and the loading tick once more - at Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247's tip it missed 20 of bbhost's functions, 16 with counts (draw_impl's 87.6 billion among them) - so it was recorded a third time at the final code (the head but this profile, and the live Text scale fix's cold hook, which went in below the save fix after the recording).
  • Recorded with v0.2.34's recipe each time: the Windows build of CI's script with -DBBHOST_PGO=generate, LTO off, from a clean tree; twelve headless runs on the RTX 3070 Ti laptop with the defaults - the hall (Oedon Chapel) uncapped with Off, TAA, DLSS, FSR 3 and TAA with 8x anisotropic filtering and at 60 with TAA and DLSS, the burning Hunter's Dream and Central Yharnam uncapped and at 60, the PS1 look - each holding 78 s with the camera turned every 8 s, all exiting 0. The plugins are off but in the PS1 run, where Hunter Cam is loaded off. This time llvm-profdata 22.1.6 merged the nineteen files and tools/pgo_store.sh stored them with the tree as @SRC@: 14,619 functions, 6,035 named by path, none outside the tree; against the second profile's, 14,545 keep their shape, 32 have another and 35 are new.
  • Fit: CI's recipe (CI_PGO=1, ThinLTO) at the head finds a profile for every function of bbhost but main (whose shape the instrumented build changes; 0.18 million counts, as with every profile) and two the live Text scale fix changed after the recording, each run once at the start or at a setting's change - settings_changed and text_scale_install, 319 counts together; three plugin names have none (no counts). The 20 the second profile had lost at Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247's tip match again, draw_impl's 87.6 billion counts among them.

Verification

The stack

  • On master (v0.2.34's merge), linear, no merge: photo mode, its first fixes, the connection test and the credit (this PR's first 26 commits), then the rendering commits, the loading screens' fixes and markers, the networking commit, the setup window, photo mode's refinements, the plugins' in-game menus, the game's dialog for them, the profile recorded at that code, the corner page's return when the game's menu flow takes it, and photo mode's hand-over to Nox-'s repository, then Kyo's Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247 (14 of his commits with his own authorship, and 13 of ours from its review, the live Text scale's fix among them), the save fix, a line in docs/running.md on what Upscaling Off below the window's size costs, and the profile recorded again at the final code. Every committer is the owner's noreply address, and so is every author but Kyo's (his own, on his 14); 23 commits carry Co-authored-by: Nox- with Nox-'s noreply address.
  • Builds: every commit builds with CI's Linux flags and Clang (100 of 100), and the Windows code - every source the stack touches, Windows-only branches included, with the test plugins - compiles at each (100 of 100). CI's tests job (tools/ci_build.sh as the build workflow runs it, in an Ubuntu 24.04 root) passes at the head, 204 of 204. CI's release recipes from clean build folders at the head: the Linux one (ThinLTO with Ubuntu 24.04's Clang 18, libstdc++ inside) builds the FidelityFX library and the NGX bridge and passes its own ctest (204; those that need the game's files or a GPU skip, as on CI); the Windows one (ThinLTO and the new profile) makes a bbhost.exe of 46.8 MB.
  • Tests: ctest on a software Vulkan driver with the game files at the head: 207 of 207, none skipped - the 44 decomp compares, plugin_menus_test, plugin_menu_test, plugin_menu_docs_test, game_menu_art_test, game_font_test, look_math_test, gx_tables_ring_test, gpu_markers_test, run_lookups_test, gpu_catch_up_test, launcher_links_test, sign_in_check_test, nat_check_test, net_p2p_test, net_p2p_whole_test, font_handle_set_test and save_commit_test, and the old-processor tests with their qemu entries; without numpy 201 of 201, plus the 6 Python tests.
  • Packages, made as the release workflow makes them - the Linux tarball, the Steam Deck kit from it, the Windows zip - pass tools/check_release_bundle.sh, together and one by one, and each carries the official plugins (signed by the release workflow's key), Hunter Cam new among them and the photo mode plugin no longer.
  • Shader caches across the update: the translator's fingerprint covers src/gcn and the translation cache's sources, which no commit here touches, so v0.2.34's caches serve as they are.
  • ThreadSanitizer on lavapipe at the code before the game's dialog for plugin menus (the fast-loading stress the race fixes were found with): none of its reports are in the homes' index, their pending copies or GX's tables ring.

#247's checks (on its own branch, before it joined this release)

  • Builds: every commit builds with CI's Linux flags (clang, lld, RelWithDebInfo, the release's flags) (27 of 27), and the Windows code of each compiles for Windows (27 of 27). CI's Linux recipe in an Ubuntu 24.04 root (clang 18): the release package's ThinLTO build and its tests 202/202, the tests job 202/202. The plugin ABI test checks version 29's table with cutscene() at its end.
  • Tests: ctest with the game's files on a software Vulkan driver 207/207; without numpy 201/201 and the six Python tests pass. Pre-push scan clean.
  • Hunter Cam (headless, offline, on copies of the saves): over the shoulder, the zoom out, in and reset, first person; another plugin's free camera, and another plugin holding the world, hand the hunter back and Hunter Cam takes it up after; during a Hunter's Dream cutscene on_view is not called once, and Quake, Isometric and Hunter Cam each give the camera back. The Sidestep's sites, read by a test plugin: written at its first frame, given back when it is turned off and written again after another took them out - with Isometric on, Isometric's left in place - and 24 switches 1.5 s apart in Central Yharnam without a fault or a jump in without its cave.
  • Quake: three lamp travels, the Hunter's Dream to Central Yharnam among them, where it crashed before; Quake holds while another plugin holds the world or moves the view; each pair of camera plugins shows its warning on both pages.
  • Text scale changed while the game runs (RTX, headless, on copies of the saves): the crash's steps - 75% at the start, a lamp travel to the Hunter's Dream, a change to 60%, the Dream's cutscene to its end - crashed before the fix and run to the end with it; Text scale as shipped, never changed, runs the same steps; nine and thirty changes with the menu opened, cutscenes and lamp travels run to the end, never more than two handles of the menus' font in a set; a return to the title - Exit Game, a change at the title, back in by Play Offline and Continue - with changes before and after it and the cutscene twice runs to the end; decomp_font_set_removal runs the game's own code: 1,919 removals the same as the game's where each name has one handle, the right one where it has two.
  • Text scale 100% -> 50% -> 100% while the game runs (a menu opened again small, the HUD after a lamp travel); the Resolution lists' labels in the setup window, its Graphics page and the game's PC Graphics list.
  • Performance at default settings (RTX 4070, Linux, 1920x1080, uncapped then 60 fps, interleaved, against this release without Kyo's commits): Central Yharnam 139.6 -> 144.1 fps, the Nightmare of Mensis 139.1 -> 139.3 (ranges overlapping), 60 held with the same p99 frame times. Steam Deck at its defaults (30 fps, 1280x800): 30.0 fps in Old Yharnam and Central Yharnam either way. Hunter Cam loaded off for everyone costs nothing measurable there.
  • Upscaling Off with a Resolution below the window (RTX 4070, 1280x720 in a 1920x1080 window, uncapped, interleaved, against this release without Kyo's commits, whose game was all at 1280x720): Central Yharnam 150.0 -> 148.3 fps (-1.1%), the Nightmare of Mensis 146.4 -> 144.3 (-1.4%), p99 7.66 -> 8.04 and 8.55 -> 8.71 ms; TAA at the same sizes 142.1 and 144.7. The cost left is the post effects and the HUD at the window's size (the GPU's frame 3.33 -> 3.80 ms). Without the occlusion fix the same frame drew ~1240 draws against ~975, and ran 9% and 7% slower. Steam Deck, its 60 fps profile (960x600 on 1280x800, two runs each): 59.9 fps either way in Old Yharnam and Central Yharnam, p99 16.8 ms against 16.8-17.4 ms (without the fix 56.6/56.8 fps and p99 ~33 ms); the GPU's frame 14.7 -> 15.5-16.2 ms.
  • Frame generation: run on the laptop under Windows - in the functional pass below.

The release gate (an RTX 4070 under Linux, 1080p, two Xeon Gold 6230)

The gate compares v0.2.34 and this release, both link-time optimized with CI's Linux flags and built here the same way, each with its official plugins beside it as a player's package has them (this release's then with photo mode, in the tree and on by default, loaded and idle) - headless, from one warmed seed, alternating (v0.2.34, this release, this release, v0.2.34), on one NUMA node, the CPU governor at performance. It ran at the code before the game's dialog for plugin menus, and those three commits were then checked against it at six places (below); the corner page's fix and photo mode's hand-over were not run in it. Kyo's #247 came after the gate: its own checks are above, and the release's RTX and Deck confirms of its render code at the final code are in the functional pass.

  • Uncapped, sixteen places (two holds of eight):
place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Hunter's Dream 173.1 (167.8-178.3) 206.3 (203.9-208.7) +19.2% better 7.62 -> 5.79 529 -> 587
Central Yharnam 144.2 (140.5-147.9) 142.7 (140.8-144.7) -1.0% 8.16 -> 8.29 566 -> 560
Cathedral Ward 171.9 (171.8-171.9) 172.2 (171.8-172.5) +0.2% 6.84 -> 7.09 552 -> 551
Vicar Amelia 233.7 (231.2-236.1) 243.1 (242.7-243.5) +4.0% better 5.66 -> 5.54 520 -> 527
Old Yharnam 160.0 (159.8-160.2) 160.3 (158.0-162.6) +0.2% 7.79 -> 7.76 676 -> 676
Forbidden Woods 148.0 (147.9-148.1) 149.6 (148.3-150.9) +1.1% better 8.75 -> 7.94 528 -> 525
Moonside Lake 188.5 (186.1-190.9) 183.8 (179.1-188.4) -2.5% 6.28 -> 6.67 456 -> 450
Nightmare of Mensis 138.8 (138.2-139.4) 139.1 (136.1-142.1) +0.2% 9.10 -> 9.07 615 -> 612
place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Fishing Hamlet 172.2 (162.5-182.0) 175.3 (173.8-176.9) +1.8% 7.00 -> 6.64 444 -> 444
Astral Clocktower 147.9 (141.4-154.3) 145.8 (143.2-148.3) -1.4% 7.95 -> 8.10 542 -> 536
Lumenwood Garden 148.0 (142.9-153.0) 143.2 (141.1-145.4) -3.2% 8.50 -> 8.86 488 -> 476
Hunter's Nightmare 157.3 (148.6-166.0) 158.8 (157.3-160.4) +1.0% 8.50 -> 8.18 470 -> 462
Laurence's staircase 154.3 (147.1-161.5) 149.4 (145.3-153.4) -3.2% 7.61 -> 8.79 547 -> 519
Cainhurst roof 152.8 (147.2-158.4) 188.8 (184.8-192.8) +23.6% better 15.12 -> 10.73 493 -> 557
Cainhurst's courtyard 121.2 (120.4-122.0) 161.9 (158.7-165.1) +33.6% better 11.27 -> 8.09 516 -> 673
The sewer pit 151.4 (144.9-158.0) 144.2 (137.5-151.0) -4.7% 7.68 -> 8.22 594 -> 575

The holds' means are +2.7% and +5.9%. The Hunter's Dream, Cainhurst's roof and its courtyard are the GPU-bound rest's gain (above): the pool works there instead of resting, for 58-157 points more CPU. Vicar Amelia and the Forbidden Woods came out higher beyond the spread; nothing came out lower beyond it. The second hold ran beside other work on the machine (its v0.2.34 runs spread up to 11%), so four of its places were run again in a quiet hold, a b b a a b: the sewer pit 158.6 -> 160.1 fps (+0.9%), Lumenwood Garden 154.0 -> 155.9 (+1.2%), Laurence's staircase 155.5 -> 155.1 (-0.3%), Moonside Lake 196.6 -> 195.6 (-0.5%) - level.

  • At a 120 cap, eight places:
place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Hunter's Dream 119.9 (119.9-119.9) 119.9 (119.9-119.9) +0.0% (ranges touch) 9.62 -> 9.57 326 -> 313
Central Yharnam 119.9 (119.8-119.9) 119.9 (119.9-119.9) +0.1% (ranges touch) 9.61 -> 9.40 462 -> 446
Old Yharnam 119.9 (119.8-119.9) 119.9 (119.9-119.9) +0.0% (ranges touch) 9.75 -> 9.59 472 -> 472
Forbidden Woods 119.8 (119.7-119.8) 119.8 (119.8-119.9) +0.1% (ranges touch) 10.19 -> 10.15 398 -> 388
Nightmare of Mensis 118.6 (117.2-119.9) 118.8 (117.7-119.9) +0.2% 10.47 -> 10.37 521 -> 522
Cainhurst roof 119.4 (119.3-119.4) 119.4 (119.4-119.4) +0.0% (ranges touch) 9.25 -> 9.55 332 -> 335
Cainhurst's courtyard 119.9 (119.9-119.9) 119.9 (119.9-119.9) -0.0% (ranges touch) 9.29 -> 9.60 461 -> 477
The sewer pit 119.9 (119.9-119.9) 119.9 (119.9-119.9) -0.0% (ranges touch) 9.29 -> 9.36 434 -> 439

Every place meets the cap as v0.2.34 does; the process moved by -16 to +16 points.

  • The title screen at its 30 fps cap (frames at the 600th, 900th and 1,200th flip, two runs of each): this release's frames are identical to v0.2.34's second run's; v0.2.34's first run differs from all three in 17 pixels at the edge of the menu's highlighted line (its glow), as between v0.2.34's own runs in its gate.
  • A true 60 at five places: 59.9 fps in every run, no frame over 33 ms, the process within a few points (190-203% against 197-208%).
place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Old Yharnam 59.9 (59.9-59.9) 59.9 (59.9-59.9) +0.1% (ranges touch) 16.84 -> 16.88 197 -> 201
Nightmare of Mensis 59.9 (59.9-59.9) 59.9 (59.9-59.9) +0.0% (ranges touch) 16.85 -> 16.95 208 -> 203
Cainhurst's courtyard 59.9 (59.9-59.9) 59.9 (59.9-59.9) +0.0% (ranges touch) 16.88 -> 16.87 197 -> 199
Central Yharnam 59.9 (59.9-59.9) 59.9 (59.9-59.9) +0.0% (ranges touch) 16.81 -> 16.85 201 -> 198
The sewer pit 59.9 (59.9-59.9) 59.9 (59.9-59.9) +0.0% (ranges touch) 16.86 -> 17.38 197 -> 190
  • Loading screens with the markers (their default) against the markers off, uncapped, alternating, 20 lamp travels in each run between a Chalice Dungeon and the Hunter's Dream: the Chalice Dungeon's load 4.89 s against 4.83 s (median; the difference's 95% bootstrap interval -0.16..+0.02 s, Mann-Whitney p = 0.14), the Hunter's Dream's 1.77 against 1.77 s; each marked run logged 22 marker windows, the last one closed. With the defaults (the frame cap on), four travels logged 6 windows, the last one closed.
  • The game's dialog for plugin menus (the three commits before the profile) against the code before them, uncapped, six places, alternating: -0.8% to +2.2%, none lower beyond the spread and three 1.1-2.2% higher beyond narrow ranges (Old Yharnam, the sewer pit, Central Yharnam) - about what two builds of nearly the same code differ by where the main thread is the limit.
  • 26 game runs, 4 title runs and 5 loading runs on the RTX: every place reached, no draw failure, no fault.

Windows

  • Against v0.2.34 on an RTX 3070 Ti Laptop GPU (Ryzen 7 6800H, a 2560x1600 display) under Windows 11, Fullscreen with the Resolution at 1920x1080 and Upscaling Off, each series started from a remote desktop session that was then disconnected, so the runs see a player's state: v0.2.34's code built here with CI's Windows recipe and its own profile against this release's package at the profile commit (the final code but the live Text scale's cold fix), alternating, 20 s windows. Uncapped (the GPU the limit in both):
place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Old Yharnam 128.8 (126.4-131.3) 120.9 (120.4-121.4) -6.1% 13.31 -> 13.09 411 -> 329
Nightmare of Mensis 122.2 (120.1-124.3) 115.1 (114.7-115.5) -5.8% 13.00 -> 13.28 376 -> 336
Central Yharnam 138.8 (136.9-140.6) 128.5 (127.8-129.2) -7.4% 11.96 -> 11.70 363 -> 357

Uncapped, this release is 6-7% lower here, all of it the GPU's frame (0.5-0.6 ms longer; the process's CPU lower or the same): this laptop's display is 2560x1600, so with the Resolution at 1920x1080 and Upscaling Off, #247's path is on - the 3D at 1728x1080 (1080 lines in the display's 16:10) and the post effects and the HUD at 2560x1600, twice 1080p's pixels - where v0.2.34 drew the whole picture at 1920x1080 and stretched it. That is the feature itself (the HUD, the menus and the post effects sharp at the display's size, in its own aspect); with the Resolution at the display's size none of it runs, and BBHOST_RENDER_SCALE=0 goes back to v0.2.34's way (docs/running.md now says both).

At 60:

place v0.2.34 fps (runs) v0.2.35 fps (runs) change p99 ms CPU %
Old Yharnam 59.8 (59.8-59.9) 59.8 (59.8-59.8) -0.1% 19.30 -> 19.62 152 -> 158
Nightmare of Mensis 59.8 (59.7-59.8) 59.8 (59.7-59.8) +0.0% 19.83 -> 20.05 158 -> 164
Central Yharnam 59.7 (59.7-59.8) 59.8 (59.8-59.8) +0.1% 20.61 -> 19.20 150 -> 155

At 60 the frame rates are the same, with 14-24 frames over 16.7 ms in a window in both arms. Eight runs each way, every exit 0, no fault, no HLE stub; the GPU at 84 C at most and the battery at 94-100% on AC.

Steam Deck

The functional pass

  • The plugin API as players will use it (at photo mode's hand-over): the photo mode plugin built from the files that go to Nox-'s repository, unsigned, in a run's per-user plugins folder on the RTX 4070 loaded, and a bbphoto stand-in of our own code beside it was passed by; L3 started photo mode with its panel at the bottom right, R3 hid and showed it, R1 turned its page, L3 ended it. With no photo_mode plugin, the stand-in loaded.
  • Kyo's Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247 at the release tip (the RTX 4070, headless, on copies of the saves, the tip's link-time optimized build with its official plugins): Hunter Cam on, with the photo mode plugin built from the files that go to Nox-'s repository in the per-user plugins folder - photo mode on by L3 gave the picture to it ("the hunter is the game's until it is ours again") and off by L3 back to the shoulder camera - then a Hunter's Dream cutscene to its end, Hunter Cam's camera back after it. Quake and Isometric both on: their warning, a lamp travel with Quake on (where it crashed before), and the Dream's cutscene with Quake giving the hunter back.
  • The setup window at the release tip (a window on a virtual display): the Game page's Display card has its Resolution row ("(16:9) 1920x1080"), the Resolution list is grouped by aspect ratio, and with Quake and Isometric on, Hunter Cam's page shows its warning beside each of them.
  • The RTX confirm of the final render code (the RTX 4070 under Linux, headless, uncapped, the defaults, the box otherwise quiet), against the code before Resolution labels and Display row; camera plugins hand cutscenes back; Quake crash fix; Hunter Cam plugin #247: six places a b b a had the Hunter's Dream +1.0%, Cainhurst's courtyard -0.6%, Old Yharnam -1.0%, the Nightmare of Mensis -1.9%, the sewer pit -2.5% and Central Yharnam -2.0%; run again a b c c b a, c the final code without Hunter Cam's file, Central Yharnam 145.5 -> 144.9 fps (-0.4%) and the sewer pit 154.2 -> 155.7 (+1.0%), both within their runs' spread, and without Hunter Cam 146.2 and 154.4 - level, the first pass's drops two runs' spread. Hunter Cam's hook on the script's env queries, there for everyone with the plugin's file, takes about 350-400 calls a frame there and returns at once while the plugin is off. 0 draw failures, 0 faults.
  • Text scale changed while the game runs (the RTX 4070, headless, the final code): at the code before its fix, Text scale 75% changed to 60% and then the Hunter's Dream cutscene crashed in Scaleform's font-handle set as the cutscene ended, with Quake and Isometric on and with no plugin at all (2 of 2); at the final code the same steps ran the cutscene to its own end (3,765 frames) and on through a lamp travel, both ways, exit 0 - the log naming the hook ("Scaleform's font-handle set removes the handle it is given").
  • The save fix's own checks (on its branch before it joined): the kill matrix on tmpfs (93 kills), NFS (109), under wine (105) and on the laptop's NTFS (105), every save all of the old one or all of the new one; CI's tests job 202/202 and ctest 205/205. On the laptop, File Explorer open in the save's folder while a file of the stage was held a moment after each flush, as a scanner holds one: "Location is not available" within 2 s with the commit before the fix; with the fix, 8 of 8 commits in about 150 ms and Explorer listing all 16 files at every refresh; with a file of the save held open, the commit waits and the next save's recovery finishes it, every save whole.
  • The save fix in the game (a software Vulkan driver, headless, on copies of the saves, on NFS, where the folders' exchange is refused, so the commit goes file by file): with the commit before the fix, the save's folder was a new one after every save (another inode at each of four saves: renamed away and replaced); with the fix - the save fix alone and the final code - through two lamp travels and the game's menu after each (Inventory, Stats and the equipment slots in and out), 20-23 write mounts and five saves of different contents a run, it stayed the same folder, nothing was ever left beside it in saves/ (no marker, no stage), and a second run loaded the last save (Continue), travelled and saved again into the same folder.
  • API 29 through the photo mode plugin while it was in the tree (the RTX 4070 headless, and the host's key scripts on a software Vulkan driver): started and ended by L3 and P - and by L3 held with Start with set to the half-second hold; its pages in the game's dialog turned by R1 and L1, Page Down and Page Up; hidden and shown again by Circle and R3, Escape and Tab; Live let the world run until the first hit held it again; with the hunter dying, the game's menu flow took the panel and the host drew it itself, and it never closed by itself.
  • The plugins' menus at the title (a software Vulkan driver, a window): System > Plugins opens the plugins' list as a page of the game's options dialog (the test plugin's Travel and Tools), and Backspace - Circle's key - comes back to System.
  • In the world: F10 > Plugins > the test plugin > Open Travel puts its menu up centred in the game's dialog ("Lamps 1/2", 15 rows scrolling in 8 slots); a lamp travel then closed it as its loading screen began, logged as the game's menu flow's close.
  • The setup window on a router bench running the server's own code, signed in, behind a router that keeps ports with incoming closed: the test read direct and was saved to the account, with the card's headline "Your network allows direct connections" and the three steps that let others in; the relay switch was turned off and on again, each saved by the server and read back.

What we ask testers to confirm

  • Hunter Cam: turn it on in the setup window's Plugins tab and try it over the shoulder (Tab swaps shoulders, the wheel zooms) and in first person (Z): tell us how it plays, and whether cutscenes show as the game's own.
  • Quake: a lamp travel, a load or a death with it on should no longer crash.
  • Text scale (Graphics): change it while you play; a menu takes the new size when it is opened again, the HUD after a loading screen.
  • Saves on Windows: with File Explorer open in your save's folder, play on - lamp travels, the menus - and watch the folder: it should keep showing your save's files, with no "Location is not available"; and your save should load as before.
  • Plugins' menus: with a plugin that has an in-game menu, System > Plugins and F10's Open should show its pages in the game's own dialog, with the game's sounds; a loading screen should close it.
  • Frame rates: uncapped, where your graphics card has room (the Hunter's Dream, Cainhurst), against v0.2.34 in the same place - and nothing lower elsewhere.
  • Loading screens: after some minutes in one place at your frame cap, travel by lamp; tell us if a loading screen ever shows a wrong picture or the game stops there - the log now says where the GPU was.
  • The setup window: the Discord and Website buttons, the Connection card's words after Test connection, and - signed in - the relay switch.
  • Depth of field Off: set it Off and On in a place and a cutscene you know; Off should take every depth of field blur away.
  • Other plugins: the Quake plugin's mouse look and movement, the boss rush and the randomizer as before.
  • An older settings file with the Debug camera on: the game should start as before, straight to the game with no setup window.
  • bbphoto still in your plugins folder: it should load and work as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w

droogie and others added 26 commits November 12, 2026 14:53
…s, left out

A cleanup, not a rendering fix: nothing visible changes in the world.

Three sites of the built-in Performance patch (Kyo's v3, kept byte for byte)
turned calls of GX's texture copy (sub_268f180) in the scene renderer
(sub_26a0a30) into NOPs:
- s125, 0x26a10c0: the scene's depth into DepthRenderTarget (+0xf48, the
  engine's own name) after mode 0's depth pre-pass, which the sun's
  screen-space shadow mask and a depth-only SSAO read right after;
- s126, 0x26a2829, and s127, 0x26a283f: after mode 1's G-buffer (+0x60 == 1),
  the depth into DepthRenderTarget and the G-buffer's first target, the
  world-space normals, into GBuffer0 (+0x1068).

These calls never run in the world's view. It draws in mode 2 (+0x68),
where CopyResource calls the list leaves alone fill the same two targets
after the G-buffer every frame - bbhost's depth snapshot compute pass is
that copy - so SSAO, the sun's shadows, the decals and depth of field read
this frame's depth with or without the three sites. A probe on the renderer
and on the copy recorder, with the sites left out, counted 0 recorder calls
in 500 scene draws over three world views (Central Yharnam twice, the
Hunter's Dream; lavapipe, 640x360), each in mode 2; the copy census and the
draw lists are the same with and without them. The graphics manager's
cube-capture view is set to mode 2 as well. Only a view drawn in mode 0
or 1 (none seen) would have read targets nothing wrote that frame.

The three sites are left out of performance_v3_sites.inc - one less patch
over the game's code, at no cost where they never ran; its comment, the
manifest's and the docs (modding.md, rendering.md) say what they were. The
patch defaults test checks that no site of the built-in Performance patch
writes the three calls (with the sites in place it fails, naming them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…sses are drawn

Off zeroed the blend of one composite, d3ca03f3+111fce32 - the one the
world's faint far blur draws at 1080p. YEBIS has others: the multi-level
composites a smaller picture, the cutscenes and a strong blur use
(+6e2d87e3, +8fcc561d, +b9167b53). With the setting off those went on
blurring, and every pass before them - the circle of confusion, the
downsample, the blur and its levels - went on running.

Off now clears the post-process block's depth of field switch (+0x1ac, the
area's own enable, which the game copies in every view) in the YEBIS record
hook, beside bloom, vignette and saturation. The flip pass then hands
YEBIS's enable a 0 and skips the focus parameters; YEBIS's effective switch
stays 0 and its depth of field is never called. On leaves the area's value
alone. A change applies at the next view, both ways.

On an RTX 4070: Off has none of the depth of field's draws in the world at
1080p and at 640x360 (where it composites with 6e2d87e3) or in a cutscene,
and the cutscene's subject and background come out sharp; On draws as before
and its frames match the previous build's within run-to-run noise. Off saves
0.06-0.13 ms of GPU time a frame at 1080p (the Hunter's Dream, Central
Yharnam, Cathedral Ward, uncapped). Turned off and on while the game runs,
the passes stop and come back at once.

The 111fce32 shader patch goes; settings_store_test's mask has only motion
blur's two patches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…10]+0xc4 is the debug free camera's, whose camera at +0xd0 the game copies over the scene's when it is set

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… controller read as a plugin's own (pad, pad_take) and who else is in the world (world_state)

What a photo mode needs from the host, so that one can be built without
writing the game's code:

- world_pause holds the world with the game's own pause, the one it holds
  while it leaves a world: the in-game update's two bytes at +0x150 (the
  world) and +0x151 (its effects and cloth), written by a hook at the
  update's entry (sub_1d3ac10) while any plugin asks. Frames go on being
  drawn and on_view goes on being called, because the update's camera part
  runs either way. The hook clears only what it set itself, never while the
  game is leaving (+0x153), and lets every hold go when a load makes a new
  in-game step, so a world never starts held. The held update reads the
  camera root's debug camera (+0x110, +0xd0) without a check, so a world
  whose root has none is not held. world_step lets a number of updates run,
  one a frame, then holds again: a frame advance.
- pad reads the controller as the plugin's own: the buttons as the menus'
  bits, whatever the player's bindings make of them in play, the sticks with
  the dead zones applied, the triggers' travel, and the presses latched
  between reads. pad_take keeps buttons, sticks and triggers from the game
  while pad still reads them. A test's taps count as the controller's, and a
  taken tap does not reach the game either.
- world_state says whether a world is loaded, loading, in a cutscene, behind
  one of the game's menus or held, the game's session role (the session
  manager's +0x124), the other players' characters in the world (the world
  character manager's player set) and the players on their way in (the
  session's members not in the world yet).

tools/api29_probe.c, built beside the tests and never into plugins/, calls
them in a running game for a harness. In a render-min client at Central
Yharnam: held, the hunter stood through 22 s of the left stick pushed up
(the probe read it at -1), moved 0 and 8 mm in two steps of two updates,
and walked 4.3 m once the world ran again; with Cross and the left stick
taken, 12 s of the stick moved the hunter 0 m and Cross never reached the
game while the probe read both; given back, the stick walked the hunter
4.8 m; the game's menu read as BB_WORLD_MENU and a load as
BB_WORLD_LOADING; offline, session 0 with nobody else and nobody arriving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…here it is put together - and who is coming counted from the matchmaking room; the controller's presses are the frame's

- hud_hide(name, hidden): the game draws its HUD, menus and prompts as
  always, and they are left out where the picture is put together for the
  screen. The picture in the 2D's target is kept at the HUD's first draw
  (frame generation's HUD-less point, render.cpp) and copied back before the
  display buffer's pass reads that target, so nothing of the game's state
  changes and its HUD option keeps its value; bbhost's overlay and menus
  are drawn as always. Two copies of the target a frame while any plugin
  asks; turning the plugin off lets go. A run's list part stops at both
  points, as it does for the HUD-less copy.
- world_state's arriving also counts the other members of the matchmaking
  room the session is in (hle_np_room_others): a player coming in counts
  from the server's word that they joined the room, before the game has
  made anything of them, so a plugin that holds the world lets go before
  the newcomer's game needs it.
- pad's presses are the frame's: latched between frames and the same for
  every plugin that reads in one, where they were the first reader's.
- BB_WORLD_OPEN and the session roles say what two games on a local bench
  showed: a bell rung alone leaves the role at none; the game makes its
  session (hosting, then host) when matchmaking finds a player, before
  that player joins the room (8 to 84 s before, in four runs).

In a rendered game at Central Yharnam with the photo mode plugin: the
picture with the world held showed none of the 2D layer, the same with
the plugin's HUD option on showed it again, and the HUD was back after.
Two games on a local server: the host's arriving went to 1 within 0.1 s
of the server's member-joined event, 1.3 to 4.5 s before the joining game
became a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ing, flown by the controller or the keyboard and mouse, with the HUD out of the picture; only with nobody else in the world

Nox-'s bbphoto rebuilt on the plugin API: nothing in it writes the game's
code, patches its bytes or hooks an address of its own.

- Hold Cross and press L3, or press P, to start it; the same again or
  Escape ends it. It always starts Frozen.
- Frozen holds the world still (world_pause), and Cross or N lets two more
  updates run - a frame advance. Static keeps the camera where it is while
  the hunter plays on: the controller and the keys are the game's again
  but for Options, the touchpad and photo mode's own keys. Live flies the
  camera over the running world while the hunter stands.
- The left stick or WASD moves the camera the way it looks, the right
  stick or the mouse turns it, L2 and R2 (Left Ctrl and Space) take it
  down and up, L1 and R1 (the mouse buttons) make it slower and faster, in
  eight steps from 0.25 to 32 m/s. What the camera flies with is taken
  from the game (pad_take, input_take), so the hunter does not move with
  it.
- The view is the scene's camera (on_view). The game's own camera - the
  one the follow camera keeps and the controls move by - is untouched, so
  ending photo mode puts the game's view back as it was.
- The game's HUD, menus and prompts are left out of the picture (hud_hide);
  the HUD option shows them.
- Only with nobody else in the world (world_state): it does not start
  while another player is in it or on the way, nor in another player's
  world, and it ends as soon as one is coming - when matchmaking finds one
  (the game starts hosting its session then, before they join the room)
  or, at the latest, at the server's word that they joined the room - so
  the world runs before their game needs it. Not with one of the game's
  menus open, in a cutscene, at a loading screen, while the session
  closes, or in the world's first two seconds (the loading screen's page
  fades out over them, and a held world would hold it there).
- Not a gameplay plugin and not opt-in: on by default, outside the
  session's online rules and which worlds it matches.

tests/photo_mode_plugin_test.cpp drives it on a pretend host: what it takes
and gives back in each mode, the camera's start and flight, the frame
advance, the refusals and the endings.

In a render-min client at Central Yharnam, by the controller: Cross held
and L3 started it with the world held; the hunter stood while 6 s of the
sticks flew the camera; Cross ran two updates; in Static the hunter walked
2.5 m and Options opened nothing; in Live 3 s of the stick moved the
camera and not the hunter; the chord ended it 11.7 m from where the camera
started, and with the game's menu open it was refused. Two games on a
local server (two runs): the host in photo mode with its bell rung for 82
and 146 s; it ended in the frame the match came (session hosting), 84 s
before the guest joined the room - and, in the first run's build, which
ended it only at the room join, 0.08 s after the server's word; the
guest's room join to its load into the host's world took 15.9 and 26.3 s,
against 18.6 and 23.5 s in two runs without photo mode. With the guest in,
both refused it ("another player is in the world", "in another player's
world"). Every game, the plugin on by default, logged its online rules as
vanilla.

Co-authored-by: Nox- <70549780+Noxde@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… is - an int, the motion blur's sample count (4 in Central Yharnam), the first integer the apply hands the blur's parameters - not "Yebis-MotionBlurScale"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… tone, vignette, depth of field, chromatic aberration, motion blur and fog, written each view into the numbers the area gives the post-processing and the fog

A plugin's BbLook applies the groups it sets, every view, where bbhost's
own settings already change the area's numbers: at YEBIS's record
(yebis_record_hook, after the settings) in the post-process block, and at
the fog table's upload (fog_upload_hook). Nothing of the game's is kept or
put back; NULL or set 0 is the area's own from the next view. One look for
all plugins, the last call's; turning its plugin off takes it away.

- Tone: the exposure times the area's (the eye adaptation's middle grey
  while it adapts, the fixed exposure +0x98 otherwise), gamma +0x9c,
  saturation +0xc8, value +0xcc ("brightness") and contrast +0x248.
- The vignette's power +0xd0.
- Chromatic aberration: on +0xac (written after the setting's mask, so it
  shows with the setting off too) and its four dispersions +0xb4..+0xc0.
- Depth of field: on +0x1ac, manual focus (+0x188 0), the focus distance
  +0x1b0, the aperture +0x1b4 and the blur's levels +0x1d0/+0x1d4; +0x1ac
  is written after the setting's Off has cleared it, so the look's on shows
  with the setting off too, and its off leaves the passes out.
- Motion blur: on +0x1dc, its times +0x1e4/+0x1e8, samples +0x1ec and the
  camera blur's scale +0x350, with the velocity switch and the shader
  patch following the look over the setting.
- Fog: 1/Dist ([1], [10]) divided by the distance factor, the three
  opacities times the density, the contrasts ([7], [19]) times the
  contrast, DistOffset [9] and HeightOffset [13] added.
- available: the groups that can show now - Performance mode jumps past
  every depth of field pass and leaves the scene's motion blur off, and
  rebuilt motion vectors leave the blur nothing to read; depth of field
  also needs YEBIS's own part of it made (the post effect's +0x140, which
  its setters check).
- Values outside what the post effect's setters take are clamped (the
  middle grey inside 0..1, as SetAutoExposureMiddleGray asserts).

tools/api29_probe.c gains "look" steps. A/B frames on a rendered game at
Central Yharnam (lavapipe, the world held, the camera still; mean level 48
of 255, two frames of the area's own 0.3 apart): exposure x2 71; gamma
x1.3 69 and less saturated; saturation 0 grey; brightness x1.5 58;
contrast x1.1 13 (crushed); vignette 1.5 the corners 55 -> 14; chromatic
aberration on with lateral 0.05, colour fringes (the area has none); fog
distance x0.3 and density x3 more haze far off (its sharpness 1570 -> 1317
and 1079), contrast x2 the far street 52 -> 44, distance offset +30 less
haze (2184), height offset -100 more (1205), +200 and +30 none. Depth of
field: the look switches YEBIS's on and off (the effect's enable byte
follows, 1 -> 0) and its focus, aperture and levels reach the apply, but
no depth of field shows in Central Yharnam - neither the area's own (on,
f/5.6) nor f/0.5 at 1 m and at 1000 m with levels 7, held three minutes -
so the aperture is not confirmed by a picture yet. Motion blur's fields
are written as logged; it needs motion to be seen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…driven by the controller, the keyboard or the pointer (BB_OPT_PANEL, panel_show, panel_state), and option_set; a key or button a plugin takes stays taken until let go

- A BB_OPT_HEADING with BB_OPT_PANEL starts a page: it and the rows under
  it, up to the next heading, are the plugin's panel and not in the menus.
  panel_show puts the panel up at the bottom right (host/plugin_panel.cpp,
  drawn with the menus' ImGui while no menu is up): the page's title
  between its turns, the rows with their own widgets, a Defaults row
  (BB_PANEL_DEFAULTS), the help of the row in use, and the plugin's guide
  for the device used last. Changes go to on_option as the menus' do.
- The controller drives it - the d-pad up and down to a row, left and
  right to change it, Cross to set or press, L1 and R1 the pages, Circle
  closes it - as do the keyboard (the arrows, Enter, Page Up and Down or Q
  and E by their place on the keyboard, Escape) and the pointer, which is
  free while the panel is up. Those buttons and keys are the panel's while
  it is up and until let go after: neither the game nor the plugins' pad
  and input read them, so the Escape or Circle that closes it presses
  nothing else. A key let go while it is down is told to ImGui, which
  otherwise took the next Escape for one still held.
- panel_state: up or not, closed by the player since the last call, and
  the page. option_set: an option set as the menus set it.
- pad_take and input_take: a button or key held as a take ends stays taken
  until it is let go - the Escape that ends a photo mode no longer opens
  the game's menu once the keys are given back, nor does the chord's Cross
  press Interact.

On lavapipe under a private Xvfb display, driven by real key events and a
virtual controller (photo mode's panel): the panel opened on its first
row; the arrows and the d-pad moved and changed rows (the field of view
+2, saturation 98 and 99), Q/E and R1 turned the pages, Escape and Circle
hid it with photo mode running on, Tab and R3 showed it again at the page
it had, and the next Escape and the chord ended photo mode with the game
reading none of their presses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…(the camera, the picture, depth of field, chromatic aberration, the fog, motion blur), their look over the area's own while it runs

Its options are six panel pages (BB_OPT_PANEL), each row live and each
with its help, after one heading the menus show (how to start, end and
drive it):

- Camera: Mode (Frozen, Static, Live; back to Frozen at each start), Field
  of view (degrees off the game's view), Roll, HUD, Vignette (the area's
  own, or none to heavy).
- Picture: saturation, brightness, exposure, gamma and contrast in % of the
  area's own (the contrast steep: 110 crushes most shadows).
- Depth of field, Chromatic aberration and Motion blur: the area's own, on
  with the rows under them, or off; those rows greyed out unless On.
  Performance mode leaves depth of field and motion blur out, and the log
  says so when a row asks for them.
- Fog: distance, density and contrast in % of the area's, the start and the
  height fog's height in metres added.

The rows go over the area's look while photo mode runs (post_look) and
nowhere else: only the groups that differ from the area's own are set, and
ending photo mode gives the area's look back. The panel opens with photo
mode; R3 or Tab shows it again once Circle or Escape has hidden it. Q and E
are taken while the camera flies (the game's Lock On and Interact), and R3
in Static (the panel's). Photo mode waits three seconds after a world comes
in now: the loading screen's page stays some 75 frames.

tests/photo_mode_plugin_test.cpp: the panel opens at the start with its
Defaults rows, the Mode row back to Frozen; the rows' look as they change
and none once every row is the area's again; R3 and Tab hide and show it;
the panel down and the look gone at the end; six pages, every row on one,
live and with its help.

Co-authored-by: Nox- <70549780+Noxde@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ed with them, built by the release and portable scripts, in the docs' table and the packages' notes, on by default

- tools/package_plugins.sh packs and signs photo_mode with the others
  (and, like them, fails a package without it); the Windows package's
  target and the portable and MSYS2 build scripts build it.
- docs/plugins.md lists it among the official plugins, made from Nox-'s
  bbphoto, and why it is not in the session's rules: it runs only with
  nobody else in the world.
- The Linux and Windows packages' notes say it is on without a line, and
  that photo_mode = false under [plugins] turns it off.

Co-authored-by: Nox- <70549780+Noxde@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… photo mode takes its place

The setting switched the "Restore Debug Camera" patch manifest
(patches/debug-camera.toml, its option debug.free_camera), which no
package has carried, so in every release it did nothing. Photo mode (the
photo_mode plugin, on by default) is the free camera now. Gone with it:

- the setting (host/options.cpp) and host_settings().debug_camera;
- the debug.free_camera option a manifest could follow
  (engine/patch_manifest.cpp), and its switch on the Patches pages of the
  setup window and the in-game menu (launcher.cpp, ingame_menu.cpp);
- main.cpp's warning about it beside the debug menu.

An options file that saved it loads as before: the key is set aside as the
loader reads it (logged when it was On), and the next save leaves it out,
as v0.2.9's old_hunters is. Nothing else reads by the file's version, so
the version stays; the options self-test (options_file_test) now reads an
old file with debug_camera = "On" and checks the line is gone after the
save. The Debug Menu plugin's own camera rows are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ew input_take_as hold one plugin's take beside the others', input_as gives a plugin reads of the mouse of its own, BbPad.play is the buttons as the player's bindings make them, and world_state counts the debug menu as a menu

Photo mode is on by default, so it runs beside every other plugin, and two
of the API's controls were one for all plugins:

- input hands out the mouse's motion, presses and wheel once: photo mode,
  reading every frame for P, took them from the Quake plugin's mouse look.
  input_as (version 29) gives a plugin reads of its own, counted from its
  own last read; input is the read of the plugins that do not name
  themselves.
- input_take's "a call replaces the last": photo mode ending gave back the
  Quake plugin's movement keys and mouse with its own. pad_take now takes
  the plugin's name, as the other version 29 calls do, and input_take_as is
  a take of one plugin's own; the takes add up, a call replaces only its
  plugin's last, and turning a plugin off gives its take back. input_take
  is the take of the plugins that do not name themselves.

A key or button held as a plugin's take ends altogether still stays taken
until it is let go (the Escape that ends a photo mode must not open the
game's menu); one a take leaves out as it goes on taking others is the
game's again at once, as it was before version 29 - the Quake plugin hands
its movement keys to the game on a ladder with W held.

BbPad.play is what the held buttons press in play under the player's
bindings, for a plugin whose controls follow the game's own. world_state's
BB_WORLD_MENU counts the developers' debug menu while it has the controls.
Photo mode makes its takes and reads as itself; the API 29 probe can take
keys both ways (keys, legacy) and logs the camera and the hunter's HP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ng else - every key and button released in play went into the menus' queue while no panel was up, filling it, and the first events of the menu opened next were dropped

While a plugin's panel is down, ImGui is told only of the keys and buttons
it was told went down while the panel was up (the Escape or Circle that
closed it), so it does not take the next press for one still held; no
frame of it runs then to take anything more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…e's Frozen stops Quake's time with the world's: the player stays where they were and the view as it was, and what the keys and the mouse do meanwhile is the photo camera's

Quake moves the player from its camera callback, which runs while the world
is held (the view is drawn every frame), so W flew photo mode's camera and
walked the Quake player through the held world at once. Its time now stops
while world_state says a plugin holds the world (plugin API 29), read on the
main thread each frame; the input it reads meanwhile is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… Live mode warns that enemies can still attack and holds the world again at the hunter's first hit

L3 held half a second, or P, starts photo mode and ends it; Escape ends it
too. The chord it had - Cross held, L3 pressed - pressed Interact before L3
came, and Cross acts on lamps, doors, items and NPCs. L3 does nothing in
play (the game's own list of its controls names every other button), so
holding it moves nothing; it is whichever button the player's bindings make
the game's L3 (BbPad.play), so a button moved onto L3 - a sprint, say - is
never held into photo mode. One hold does one thing however long it lasts;
in one of the game's menus or the debug menu it starts nothing and says why.
No default binding is on L3 or P but the keyboard's Left Ctrl, which is the
game's L3 and never photo mode's (it reads the controller), and nothing in
the official plugins is either.

Live stays as it was - the world runs while the camera flies and the hunter
stands - and says what that means where it is chosen: its row's help, and
a banner on switching to it, say that enemies can still attack the hunter.
The first hit, a drop in the hunter's HP, holds the world again: Frozen, the
row set back, and a banner saying why, so a second cannot follow. Nothing
makes the hunter harder to hurt; that would change the rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… hidden - its video memory (the display buffers' size: 42 MiB at 5120x2160) is given back at the display buffer's pass once no plugin hides the HUD, where it stayed for the rest of the session after one photo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ng enemies keeps the hunter alive while it looks at something else

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…eir own table of blur by depth gives way to it while the look's depth of field is on, the blur in front of the focus included, and comes back at the next view without it

The areas do not blur by YEBIS's lens but by the game's own table: each view
the apply fills 2048 floats on the YEBIS object (+0xd0) with the blur at
each device depth, which the CoC pass reads depth through, and every main
area's GPARAM turns on its custom near and far ramps there, so a look's
focus and aperture never reached it - photo mode's depth of field changed
nothing. Under the look's depth of field the block's ramps are now off
(+0x2d4, +0x2d8), so each entry is the lens's circle of confusion: negative
in front of the focus, positive behind it.

The apply multiplies a negative entry by +0x2e8 and a positive one by
+0x2f8: both are 1 with the look's blur in front and behind (0 with none),
and nothing is cut by distance (+0x2fc). With the look's levels YEBIS
composites through its multi-level path, whose near levels blur what is in
front at any focus distance (10 m to 400 m measured). The sign stays as the
lens gives it: turned to count as what is behind, the front goes to the far
side's levels, which YEBIS counts by the circle at the far end (0x1068b60),
and there is no blur in front from a focus of about 50 m on.

The fields are written each view with the rest of the look; without it the
block is the area's again at the next view, its table byte for byte.
BBHOST_DOF_TABLE_LOG=1 logs the table's hash and range each time it
changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… Resolution

YEBIS blends each depth-of-field level's blurred picture in by
t = clamp(k * CoC + b). k grows with the picture's height (the circle of
confusion is measured in pixels), b does not (-0.250125 for the first level
at every size), and a level's blur is a fixed number of pixels in a target a
fixed share of the picture. So the areas' faint far blur faded out below
1080 lines - none at 640x360, two thirds of it at 720p - and came out about
18% stronger at 1440p (t reaches 1 by 2160p).

The levels' offsets now scale by height / 1080 at the entry of
CDepthOfField's aperture-filter levels (sub_1068b60), which runs right after
sub_1055af0 writes the levels' factors afresh, so nothing compounds: t is
then its 1080-line value times height / 1080 for every circle. Only on a
side the view draws with one level (the post block's counts: the areas' own
far blur is near 0, far 1). With more levels a circle that grows with the
picture moves on to the next, larger level and keeps the look by itself:
photo mode's lens at f/0.7 (7 and 7 levels) is 0.92-1.00x of 1080p's at
2160p as YEBIS has it, and 0.64-0.77x with its offsets scaled. Only the
world's view, too (YEBIS's source as high as the picture, so a menu's
preview keeps its own), and not while a cutscene plays: a cutscene's blur
stays as YEBIS draws it, and it keeps its look by itself (0.92x of 1080p's
at 2160p). Nothing changes at 1080 lines, or with Depth of field off, where
YEBIS never calls the levels.

The far region's visible change at a common 640x360 view, against 1080p's:
360p 0 -> 0.87, 720p 0.67 -> 0.94, 1440p 1.19 -> 1.04, 2160p 1.13 -> 0.97.
At 1080p the frames and the draws match the previous build's.

The height is the picture's, the one YEBIS works at, also with an upscaler:
the blend is then the native size's. With FSR 3 Performance at 1440p (the 3D
at 720 lines) the change is 0.78x, because the upscaled picture carries 20%
less far detail before the blur; the blur takes the same share of it as at
1080p (87.5% kept, 86.6% at 1080p). Blending harder by the 3D's height would
make up the number by blurring a softer picture further.
BBHOST_DOF_1080_LOOK=0 keeps YEBIS's offsets (a test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… the instrumented build on an RTX 3070 Ti Laptop GPU under Windows: uncapped the hall with Off, TAA, DLSS, FSR 3 and TAA with 8x AF, the burning Dream, Central Yharnam, the PS1 look with its dither; at 60 the hall with TAA and with DLSS, the burning Dream and Central Yharnam; all exiting 0

The repository's profile was recorded at v0.2.34's code. At c8598138,
this release's code but for its last commit, it no longer matched 41 of
bbhost's functions, 20 of them with counts - the draw path's draw_impl
(84.6 billion counts), where hud_hide keeps the picture at the HUD's
first draw, the controller's read (hle_pad_read, 18.5 million), the
YEBIS record and fog upload hooks the look and Depth of field Off write
through, and plugins_frame - 84.6 billion counts in all that the build
would have dropped, so those functions would have been built without a
profile.

Recorded as 7659608's was, with the defaults and the plugins off but in
the PS1 run (BBHOST_PLUGINS=0, as the recipe has it), so photo mode, on
by default, was loaded and idle in that run alone: the Windows build of
CI's script (tools/ci_windows.sh) with -DBBHOST_PGO=generate, LTO off,
from a clean tree at 2ebd419f; LLVM_PROFILE_FILE per run; headless, the
flip clock at 60 and every refresh rate asked 144. Each run continues
the seed's save, travels where it goes and holds 78 s with the camera
turned every 8 s: the hall is Oedon Chapel (the Cathedral Ward's lamp);
the burning Hunter's Dream (flags 12601800 and 9462, then its lamp);
Central Yharnam at the seed's lamp; the PS1 plugin there with its
dither. Each wrote its profile at its exit (the PS1 run's plugins theirs
too), llvm-profdata 22.1.6 merged the nineteen files, and
tools/pgo_store.sh wrote it with the tree as @src@: 14,181 functions,
5,898 of them named by path, none outside the tree. Against the
repository's profile, 14,001 functions keep their shape and 52 have
another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…f - only one the player turned on, whose settings they have not seen

Photo mode is the first official plugin on by default with settings, so
every player's first start after the update opened the setup window on its
Plugins tab instead of the game. The window now opens only for a plugin the
player turned on ([plugins] <name> = true), as main.cpp's comment always
said; photo mode's settings wait on the Plugins tab and in game for whoever
looks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…two never both answer L3 and P

Photo mode is bbphoto rebuilt on the plugin API, and players who installed
bbphoto keep it in their plugins folder. While photo_mode is on (its file
there and not photo_mode = false), the loader passes bbphoto by - by its
file's name before loading it, and by the name it gives itself before
starting a renamed copy - with a line in the log saying so.
[plugins] photo_mode = false loads bbphoto again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…nd logs what this PC refused to send

A player's PC can hold or stop bbhost.exe's datagrams where the browser's
get through: a security program that asks about bbhost.exe holds its first
packets meanwhile, and a firewall or antivirus can refuse them outright.

- The plain requests go again while unanswered at 0, 0.3, 0.8, 1.6, 2.8 and
  4.2 s (to 1.6 s before), within an exchange of 6 s (3 s before). The port
  check's go at 0, 0.5 and 1.2 s as before, and at 2.8 and 4.2 s only while
  not even its usual answer has come: a router that drops its second answer
  still ends it at 2.2 s after three requests, so the server's port-check
  answers (20 a minute per address) go as far as they did. With everything
  in it ends at once as before; with nothing back it takes the 6 s.
- A send the system refuses is counted and goes again at its next time; the
  first refusal's error is kept, in words on Windows too ("access denied,
  Windows sockets error 10013"), with whether it was a permission error.
  When every send is refused and none is left to try, the exchange ends
  there, and a signed-in test does not ask the server: nothing reached it,
  and another test from the same address in the last two minutes, the
  website's, would answer for it.
- The log line says how many datagrams went out and how many were refused,
  with the first refusal's words: "...; UDP port 9307; sent 17, refused 0;
  not saved (not signed in)". Still no addresses.

On Windows an outbound block at the layer the firewall's rules use drops
bbhost's datagrams while sendto reports success (WFP block filters on a
test PC), so such a block reads as no answer, not as refused sends; Linux's
nftables and iptables refuse them (EPERM).

tests/nat_check_test.cpp: the new schedule's counts and times; the first
2.5 s held (direct, and the port check open - or closed a second after its
request got through); every send refused (the limited broadcast address
without SO_BROADCAST: 17 refused, the error kept, over at 4.2 s); a lost
first answer filled in at once by the port check's; the log line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ack to bbhost and what the server saw

Players saw "UDP is blocked on this network" in the setup window while the
website's account-page test passed. The two tests differ: the website's is
the browser's own datagrams, and the server counts what reaches it, so
nothing has to come back to the browser; the setup window's runs from
bbhost.exe on the game's P2P port and reads the answers. Without them the
card said "Nothing reached the server's test ports ... from this network"
even when not signed in, where the server was never asked; and signed in, a
kept "direct" with no answer back showed "Direct connections: yes" and a
note blaming a VPN or proxy.

The card now reads a finished test as one of these (net/nat_check.h
reading_of and card_of; the launcher only draws them):
- no answer, not kept: "No answer reached bbhost" - what it sent did not
  get out, or the answers were stopped on the way back, by a firewall or
  antivirus on this PC or by the network; signing in and testing again
  tells which;
- kept "blocked", no answer: "Nothing from bbhost reached the server" - if
  the website's test passes, the network is fine and a firewall, antivirus
  or VPN on this PC is blocking bbhost.exe: allow it and test again, online
  play needs it; if it fails too, the network blocks UDP;
- kept "direct" or "relay", no answer: "The server hears bbhost, but its
  answers don't reach it", a warning - most likely a firewall or antivirus
  stopping what comes back to bbhost.exe;
- every send refused: "This PC did not let bbhost send", the system's
  error, and allow bbhost.exe (the network named first when the error was
  not a permission one);
- kept "blocked" though the test ports answered: "The server did not see
  this test from your address" (a VPN or proxy for web traffic) rather
  than "blocked";
- answers back: the verdicts and notes as before, and a lost answer named
  as such instead of the VPN note.
F10's line repeats the card's headline and meaning. The account's last
test, when it says blocked, adds that the website passing while bbhost
fails points at this PC. docs/online.md has the readings.

Measured on a Windows 11 PC against a test listener of the server's own
code, with WFP block filters on that bbhost.exe at the layers the
firewall's rules use: an inbound block (what Cancel on the firewall's
prompt makes) lets the answers to what bbhost sent in and stops only the
port check's unasked one ("Incoming: closed"); an outbound UDP block, or
answers dropped on the way back, gave the old card's "UDP is blocked on
this network" while the browser's and PowerShell's requests on the same
path were answered.

This build on that PC, signed out: no filter and the inbound block read
as before (direct; incoming open, or closed after the port check's three
requests); the outbound block and the dropped answers both read "No answer
reached bbhost", the log saying "sent 17, refused 0" - the listener had
all 17 with the answers dropped. In a router namespace on Linux with the
server's own code, signed in: answers dropped on the way back, "The server
hears bbhost, but its answers don't reach it", where the build before
showed "Direct connections: yes"; UDP dropped both ways, "Nothing from
bbhost reached the server"; nftables refusing the sends, "This PC did not
let bbhost send (Operation not permitted)" with no test kept.

tests/nat_check_test.cpp: every reading and its words, tone, incoming
line, detail and note - and that no answer never says the network blocks
UDP or that direct connections work. 53 hand mutants of the two commits'
logic (the schedule, the refusals, the readings, the words) each fail it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…t is rebuilt from - in the README's acknowledgements, the plugins table and the plugin's source

Co-authored-by: Nox- <70549780+Noxde@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Test build of 54f2ac8: Windows zip, Linux tarball and Steam Deck kit, unsigned, kept 14 days.
Download windows, linux or steamdeck (each with its package), or release (everything), from the bottom of the run page:
https://github.com/droogie/bbhost/actions/runs/43676408466#artifacts

droogie and others added 3 commits November 13, 2026 04:24
… slower than the frame that began it is an experiment's clear answer, and the pool works on

Where the pool's work makes the frame the GPU's, resting it made the command
processor the wall again, and the rest never learned it. On an RTX 4070 with
two Xeon Gold 6230, uncapped, the Hunter's Dream ran 204-208 fps working (the
GPU 91-95% busy) and ~170 resting (the command processor 100% busy, the game
held back by it 70% of the time), Cainhurst's courtyard 166-170 and 106-113:
the GPU-bound rest began after two windows, ended after six once the GPU had
room, and began again two windows later - ten times in every 20 s, so the
places' probes never came due - in v0.2.34's runs and v0.2.35's alike.

A rest the GPU began with no cap holding the frame (the limiter waiting under
8%) now keeps the frame rate of the GPU-bound windows that began it. Ended -
the GPU under 80% busy over six windows - with the frame 8% slower than that,
it is taken as an experiment's clear answer: the pool works, and no GPU-bound
rest and no probe come for 40 s, then 160, then 240 (a loading screen starts
the place over). A rest that ran as fast - the frame the GPU's either way, as
an APU's is - wakes as before and may rest again at once, a rest that stays
GPU-bound goes on as before, and at a cap (the limiter waiting 8% or more)
nothing changes. The duty's report counts the rests so judged.

RTX 4070 under Linux, against c793c82, alternating runs (two each), uncapped:
the Hunter's Dream 179.4 -> 208.5 fps (+16.3%, p99 8.05 -> 5.94 ms),
Cainhurst's courtyard 125.3 -> 162.4 (+29.6%, p99 10.22 -> 7.47), its roof
158.8 -> 181.3 (+14.2%), each beyond the runs' spread, for 77-174 points more
CPU there (the pool working); Central Yharnam, the Nightmare of Mensis, the
Fishing Hamlet and Byrgenwerth's lake within the spread, the probes' rests
kept. At a 120 cap the same frame rates and the process's CPU within the
spread at all seven places; at 60 the same. RTX 3070 Ti Laptop GPU under
Windows (the window closed), uncapped: every place of five stayed the GPU's
resting (96-98% busy), the rests went on as before and the frame rates matched
(-1.0..-0.2%); at 60 both rested at the cap throughout. A Steam Deck (its kit,
60 fps; the pool is off there) ran Old Yharnam, the Nightmare of Mensis and
Central Yharnam as c793c82's kit did, alternating, without a fault. The
Windows build keeps its profile but for the duty's own once-a-frame function.
The rule's test drives the Dream's sequence, a rest that runs as fast, a rest
at a cap and a loading screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… records' buffer extent from the lookup before, while what that lookup was made of is unchanged

The command processor's in-order draws repeat two lookups within a run. With
the pool's segments on, each batched draw asks publish_run_targets_locked to
publish its run's targets for the pool's draws: names_of builds a zeroed
GpuDrawInputs, the names are hashed, the set searched, and the way already
holds them (0.10-0.24 ms a flip on an RTX 4070 with two Xeon Gold 6230). And
each vertex record whose extent decides something asks gx_buffer_end for the
end of the GX buffer it starts in: the registry's lock - the one the game's
Maps and the GX threads' constant-buffer checks take - and its map walk
(0.10-0.34 ms a flip), mostly in the buffer the lookup before found.

The run's targets now carry a version that run_targets moves whenever it
refills or drops them. While it stays, the way the last call took keeps its
sequence, the erase generation is the one it was published or found at and
the publication is no older than kRtPubAge / 2 flips, the call returns at
once - the condition under which it returned before, on the same values. The
registry moves a shape generation under its lock right after each change of
its memory index, its holders, or an entry's memory, size, type or liveness,
before anything in the change that could release (an erased node is freed
after the move). gx_buffer_end keeps each thread's last answer with the
addresses that answer the same and answers from it while the generation, read
with acquire, is the one read with it: a thread that has synchronised with a
change reads the moved generation and looks up under the lock.
BBHOST_RUN_LOOKUPS=0 looks both up every time; =compare looks every memo
answer up as before, returns that, and counts and logs the differences.

Compared, none of 123 million memo answers differed: on the RTX at the 16
places uncapped and at four held to a 4 GB card's 2,950 MiB (the memo
answered 50% of 40.9 million publications and 94% of 60.6 million extents),
on an RTX 3070 Ti Laptop GPU under Windows (the homes on; then the run commit
on, its workers resolving 73% of the draws) and under lavapipe at 12 places
(the homes off and on). A Steam Deck asks neither lookup. ThreadSanitizer
under lavapipe, the homes and the run commit on, found nothing in the memos
or the generation.

RTX 4070 under Linux, against ea81c02, alternating runs (two each),
uncapped: Old Yharnam 161.0 -> 166.1 fps (+3.1%, p99 7.76 -> 7.46 ms), the
Nightmare of Mensis 140.3 -> 144.9 (+3.3%), the sewer pit 152.3 -> 156.3
(+2.6%), each beyond the runs' spread, the process's CPU the same; the
command processor 0.12-0.26 ms a flip shorter and the main loop 0.17-0.23 ms
a frame. Held to 2,950 MiB (no pool: the extent alone) the four places within
the spread. At a 120 cap with the pool kept working the frame held its cap
in both and the process's CPU was 5-15 points lower at five places (the
Hunter's Dream 342 -> 327, beyond the spread); at 60 the same frame rates,
frame times and CPU. The static title's frames are the same in both, and
the places' frames within the runs' own differences. RTX 3070 Ti Laptop
GPU under Windows (the window closed), uncapped: GPU-bound with the pool
resting, every place within the spread; at 60 the same. A Steam Deck's kit
at 60, alternating: the same frame rates (OY 59.8/59.9, Mensis 55.9/56.3,
CY 59.9/59.9) and CPU, no fault.

The Windows build keeps draw_impl's profile; gx_buffer_end,
publish_run_targets_locked and three of the registry's functions lose
theirs. The test drives a model of the registry and of the publication's
slots against both lookups as they were, with fourteen mistakes each caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…he GPU outside the renderer's lock

When every block of a GX pool still waits on its label, the resource-table
reclaim and the discard rename let the GPU catch up on everything recorded with
host_gpu_flush: the recording under way submitted, then each submission's fence
waited for and its slot retired - all under the renderer's lock, which the
command processor waits for meanwhile. With a 4 GB card's memory acted out on an
RTX 4070 (BBHOST_TEST_VRAM_MB=2950: the command processor draws everything in
order) it waited 2.08 ms a flip for that lock at Old Yharnam.

host_gpu_catch_up (host/gpu_catch_up.h) makes the flush's own submit under the
lock and notes the submissions it covers, waits for them on the timeline without
the lock - their labels landed - and then retires those slots under the lock,
where nothing waits any more and what they held is let go as the flush let it
go. A wait that runs out (200 ms: the GPU slow or stuck) waits for the same
submissions under the lock, with the flush's stuck-GPU handling and without a
second submit. On Windows the wait reads the timeline between sleeps: NVIDIA's
driver holds its lock through a wait for a value still to be submitted, and the
catch-up's own submission is the submit thread's to make. With no timeline, or
BBHOST_GX_CATCH_UP=0, it is the flush. BBHOST_TEST_GPU_STALL_CATCH_UP puts the
GPU stall job into a catch-up's own submission (BBHOST_TEST_GPU_STALL's job is
waited for by the submit that carries it, and its code is inlined into
submit_locked, whose Windows profile a change there costs).

RTX 4070 under Linux, alternating runs (two each), uncapped. The 4 GB card acted
out: Old Yharnam 81.9 -> 99.3 fps (+21%), p99 17.7 -> 13.0 ms, the command
processor's wait for the lock 2.08 -> 0.10 ms a flip; the Nightmare of Mensis,
Central Yharnam and Cainhurst's courtyard within the runs' spread; the same
binary with BBHOST_GX_CATCH_UP=0 ran Old Yharnam as the base did. Its 3,800-4,800
catch-ups a run all waited outside the lock, the longest 41 ms. The default
path (the homes and the pool), where catch-ups are few (230-1,300 a run): the 16
gate places within the spread but for single places in single holds that went
the other way on a repeat (the sewer pit -5.2% then +5.2%) or followed the
binary with the switch off (the Fishing Hamlet +3-4%); at a 120 cap the frame
held and the process's CPU moved -1..+5% with 3-14 catch-ups a run; at 60 and
at the static title nothing changed. RTX 3070 Ti Laptop GPU under Windows: the
old path forced (the homes off, the run commit on) and the default, uncapped,
within the spread, its 60 the same; the Radeon 680M there and a Steam Deck at
60 and uncapped the same, their catch-ups rare and all outside the lock.

The submissions a flip and the transfer batches a flip (and the transfers in
each) are the base's in every arm on every machine. The Khronos validation layer
reported the base's two known message ids and nothing new (lavapipe with the
catch-ups forced, the RTX with the 4 GB card acted out). With the stall job in a
catch-up's submission the wait ran out at 200 ms and the same submission was
waited for under the lock until the job was let go, the blocks then freed
(lavapipe, the RTX). ThreadSanitizer under lavapipe, the catch-ups forced and the
run commit on and off, reported nothing in the catch-up's code or in what it
calls. No allocation failed but at the area check's 5120x2160 frame dumps, in
both arms. tests/gpu_catch_up_test.cpp drives the catch-up against a model of
the queue, its ring and labels and a command processor submitting meanwhile,
and catches eleven deliberate mistakes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
Kyoskii and others added 27 commits November 14, 2026 12:18
…t person, the wheel's zoom, full-speed facing and a roll that holds. First person (Z toggles it; Eye height, its own field of view): the camera at the hunter's eyes, every part hidden but the weapons - a model ins's file name is at +0x148 -> +0x18, WP_ the weapons (slots 7 and 11, a hand each; FG_ the face's parts) - each display entity's +0x210 bit 2, frame by frame, shown again on the way out; checked with the Hunter Blunderbuss in hand, only the gun drawn. The wheel and the middle button (camera_zoom, API 26) zoom the shoulder camera 15% a notch and reset it; taken only once the camera first runs, and from then on the game's camera is zoomed by the plugin as the host did (20% a notch, half to six times) wherever ours is not in charge. Always face the camera at full speed: a hook on the HKS env dispatcher's entry (0x1e13760, the answer in eax) answers the player's precision shooting (0x18) no and lock-on (0x12) yes, so the script strafes them as locked on - about 7.5 m/s against the monocular walk's 2.6 - the facing still held by the precision bit. Dodge 0 Roll rolls locked on too: inside Act_Rolling's decision - env(0, Arm_Rolling) and then the stamina query only a yes leads to - both answers are no (a roll seen mid-dodge in facing mode). Sidestep no longer takes Modern Movement Lite's hooks back at Roll: only the sites the plugin wrote are ever given back, so the patch keeps working beside it (its act/env caves stay in place). Dodge defaults to Sidestep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… turning it and 80 degrees up and down; X opens, picks up and talks while facing the camera; a Crosshair switch; Right stick speed; fields of view as F10's +%; the shoulder swap's banner gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… poly); first person draws the chest's coat so the arms reach the shoulders; F10's and the main Field of view reach first person; Roll goes the stick's way while facing the camera (put off a frame, unaimed, the view held).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… or in first person (the item's use refused while aiming, 0x197f9b4's mask passed); first person draws the gloves and weapons only again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… "(16:9) 1280x720" in the setup window, F10 and the game's own list - grouped by ratio, smallest to largest in each, as the list already was. The values stay plain WxH, so saved settings and bbhost.toml are unchanged; the in-game texts keep their notes after the size ("(16:10) 960x600 (upscaled)", "(16:3) 5760x1080 (three 16:9 screens)").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…he Graphics page's own setting, its labelled list ("(16:9) 1920x1080") and help, changed and saved at once as there (host_opt_resolution_labels, host_opt_resolution_note).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ad or a cutscene, and Quake and Isometric warn when both are on

- Plugin API 29, cutscene(): 1 while a Remo cutscene is asked for or playing (SprjRemo's manager, the flag fast loading reads; logged as "cutscene: begins/ends"). on_view is not called during one, so a plugin's view never replaces the cutscene's shots.
- Quake 0.3.23 hands the hunter back for a cutscene's length - gravity, the body, the controls, the left hand - and takes them up again after, as after a load. Its crash: lift_dash counted the Restore Debug Dash hook as set aside where the patch was never installed (api->patch answers 0 for bytes already in place), so releasing the player wrote the patch's jump into the error strings at 0x4d3b8e4 and the next movement step ran text - at every release (a load, a lamp travel, a death). It now sets the hook aside only where it is there.
- Hunter Cam 1.3.2 gives the camera, the facing (the aim bit) and the hidden body parts back during a cutscene; Isometric 0.6.1 drops its cutaway and its listener.
- Quake and Isometric both on (turned on, with their main switch on): a warning on both plugins' pages in the setup window and F9, and once in game as a banner (plugins_clash).

Checked headless on a copy of the saves, offline: a lamp travel with Quake on crashed before (0xc0000005 at 0x4d3b8e4) and passes now; Central Yharnam's cutscenes with Quake, Hunter Cam in first person and Isometric each show the same frame 15 s in as with no plugins; Quake and Isometric together through the Hunter's Dream's cutscene requests.

Taken onto v0.2.35, whose plugin API 29 - not released yet - already holds the world, controller, picture and in-game menu calls (world_pause through panel_open): cutscene() joins that table at its end, after panel_open, and the version stays 29. v0.2.35 already kept the same cutscene flag for world_state (engine/loading.cpp's g_cutscene and loading_cutscene()), so that one stays and this commit adds only its "cutscene: begins/ends" log line.

Kyo's following commit, "tests: plugin_abi_test checks version 29's table", is folded in, so this commit builds: CI's Linux build stopped here on the test's old "panel_open ends the API table". The test checks version 29's table as it is, then cutscene() right after panel_open, ending it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ows on Windows, 7 elsewhere), so Performance mode is no longer cut off; the Online card beside it keeps the same height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…1% (next start) - MenuFont_01's scale, the float Kyo's "50% Text scale" patch set; the patch text-scale-50 removed, and a player who had it on starts at 50%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…m's FontMap::MapFont (0x40c240) scales MenuFont_01 as it is mapped and keeps the map, and a change rewrites the entry's scale; a menu takes it when it is opened again, the HUD at the next loading screen or the title. No "next start" any more (the constant at 0x4d2913c is written only if the hook is refused).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ale is a setting

A package unpacked over an older one keeps patches/text-scale-50.toml. With
it on, the patch still wrote 0.5 into the constant MenuFont_01 is mapped with,
and the Text scale hook then took that 0.5 as the game's own scale and
scaled it again - the migrated 50% made the text a quarter of its size. The
file joins the retired ones (retired_file), as SSR's and the others did when
they became settings, and patch_defaults_test checks that no file of that
name comes back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
A plugin's on_view - a free camera's - draws the picture from a camera that
is not the game's, while the game's camera and the controls stay as the other
plugins leave them: Hunter Cam's first person kept the hunter's body hidden
in such a camera's pictures, and its mouse aim and Quake's movement went on
reading the keys and the mouse that camera flies by (a plugin's take keeps
them from the game, not from the other plugins). The view hook now notes when
its callbacks changed the view, and world_state sets BB_WORLD_VIEW for that
flip and the next, so a plugin whose own camera is not the one drawn can give
the hunter back meanwhile; a plugin that moves the view itself sees its own.
Part of version 29 with cutscene() (neither released yet). The ABI test checks
the flag; the docs and on_view's comment also say that on_view is not called
during a cutscene since 29.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…cutscene(), and say so on an older host

The three give a cutscene back to the game through cutscene(), version 29's
last call. On a host without it - an older version, or a 29 whose table ends
before it - they found nothing and played on through the cutscene; now they
refuse to load there with a line that says what they need ("needs plugin API
29 (cutscene()); this host has 28").
Quake's attach asks for 29 too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…e picture - a free camera's pictures show the whole hunter

With another plugin's free camera up, Hunter Cam went on as if its own camera
were the one drawn: in first person the hunter's body stayed hidden in that
camera's pictures (only the arms and weapons), the mouse that flies it turned
Hunter Cam's aim - the hunter, facing the camera, turned with it while the
world ran - and a key both use (Tab, Hunter Cam's shoulder swap) did both.
Now, while another camera has the picture (world_state's BB_WORLD_VIEW) or
another plugin holds the world (BB_WORLD_PAUSED), the camera, the facing and
the body are the game's, as for a cutscene, and the keys, the mouse and the
wheel's notches are read and dropped (during a cutscene too); Hunter Cam takes
them up again after. Checked with a test plugin whose view stands 3 m back,
and with its world_pause: the whole hunter in view, first person again after.
Hunter Cam 1.3.3; its docs row says so, with the cutscenes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…mera's keys no longer walk the player

Quake held while another plugin held the world still, but a free camera over
the running world flies by W, A, S, D and the mouse - which a plugin's take
keeps from the game, not from Quake - so the player walked off with it.
Quake now holds while another camera has the picture too (world_state's
BB_WORLD_VIEW), as while the world is held: its time stops and what it reads
meanwhile is dropped, and it takes the player up again where they stood
after. Quake 0.3.24; its docs row says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…n of each other

Quake's first person and Isometric's view both replace Hunter Cam's camera -
under Isometric's view Hunter Cam now gives the hunter back, as to any other
camera's picture - and its facing fights Quake's own movement, so with either
on it does nothing or worse. The clash list (plugins_clash) gains both pairs:
the warning on the plugins' pages in the setup window and F9, and once in game
as a banner, as for Quake and Isometric. A page shows every clash its plugin
is in, a line each (Quake beside both shows two).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… a draw at default settings pays one load for it

stretch_samplers runs for every draw and began with the pipeline's name - a
string compare a draw - before anything showed that the 3D is drawn smaller
at all. It now starts with the render scale's own flag (render_scale_on, one
atomic load: false while the Resolution is the window's, the default), then
the colour target, and only under them the name, the upscaler and a plugin's
look, as before. The same answers in the same order of meaning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…ne - Quake crashed after a lamp travel

Quake gives the hunter back (release) when it lets go of the player, and it
let go of the character it last held - after a load, the old player, which
the load had freed: it wrote that character's switches (gravity, drawing)
and read its parts to show them again. A lamp travel from the Hunter's Dream
to Central Yharnam crashed there (SIGSEGV in quake.so's vm_show, the parts
read as garbage) - the same code was in v0.2.35's Quake, where a quiet run
reads freed memory that has not been reused yet. Now the held character's
switches and parts go back only while it is still the player (Quake turned
off, a cutscene, a loading screen coming up with the hunter there); a
character that is gone is left alone, and the dash hook, which is code, is
put back either way. Hunter Cam shows the parts it hid in first person the
same way: only on the player still.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…host while it is off

Hunter Cam turns on and off in game (BB_PLUGIN_LIVE_SWITCH), so the host
loads it for every player who has the file - every package - and calls its
frame callback whether it is on or not. Off, that callback still read
world_state, the player's SpEffects (the monocular's) and the parts it hid,
each frame. It returns at once now while the plugin is off: turning it off
already gave the aim bit, the code sites and the hidden parts back (apply()).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…, all of them or none, and leaves Isometric's sites to Isometric

Turned on in a running game, Hunter Cam wrote the omni-roll's sites in
address order: its ten jumps in the game's code first, then the 35 caves
they jump to, so for that moment a jump could run zeros. A site it did not
know was passed over and the rest written, so a jump could go in without
its cave. The caves now go in first and the jumps last, as bbhost writes a
patch file while the game runs; with one site refused no jump goes in, and
those already written come out again. Taken back, only the jumps it wrote
go, as before; the caves stay, as a patch file's do.

Hunter Cam on with Sidestep at the start wrote the sites in its image
phase, before Isometric's, which then found them in place and left them to
it: turning Hunter Cam off, or its Dodge to Roll, took Isometric's omni-roll
away for the rest of the run. It now writes them at its first frame, after
every plugin's image phase, and finds Isometric's in place.

While the sidestep is on, a jump the eboot's bytes are back in (Modern
Movement Lite switched off in the game, whose jumps they were) is written
again within a second, Hunter Cam's from then on, and given back as Hunter
Cam goes off. Hunter Cam 1.3.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…me's occlusion culling the scene's depth - it culled nothing there

With the 3D drawn smaller than the output, the game still draws its
occlusion culling's proxies against DefDepthStencil at the output size,
which the 3D no longer draws into. bbhost moves them onto the scene's own
depth, learned at YEBIS's copy - but draw_impl learned that depth only while
an upscaler or frame generation runs, or for a plugin's look. Upscaling Off
below the window's size (bc22775) is neither: every box passed against an
empty depth and nothing was culled. At the Central Yharnam lamp, 1280x720 in
a 1920x1080 window, a frame drew ~1240 draws against ~940 with TAA at the
same sizes and ~955 at native 1920x1080 - the G-buffer pass 797 draws
against 556, the velocity map's 103 against 47 - and the game ran slower
than at the full size. The scene and its depth are now learned the same way
while the render scale is on with no upscaler running; nothing else reads
them there (the jitter, the mip bias and the motion capture stay gated on an
upscaler, a plugin's look or render hooks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…UD at the screen's size - its guide says so, not FSR 1

Since Upscaling Off at a Resolution below the window's draws only the 3D
at it (bc22775), the Deck's 60 fps profile - 960x600 on a 1280x800 screen -
brings its 3D up through the game's own copy into the post effects, with the
HUD, the menus and the post effects at 1280x800; the presenter's FSR 1 has
no smaller picture left to scale. STEAMDECK.md said the profile is scaled up
by FSR 1 and keeps FSR 1 over FSR 3; it says what happens now. Measured with
the occlusion fix before it (the Deck, the profile's own settings, Old and
Central Yharnam, two runs each against v0.2.35): 59.9 fps either way, p99
16.8-17.4 ms against 16.8 ms - it holds 60. The Resolution list's comment
and docs/area-check.md's note on a render below the display say the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… a cutscene ends - Scaleform's font-handle set removes the handle it is given

Scaleform's FontManager keeps the font handles a movie made in a set keyed
by font name and flags (CreatedFonts), and every removal from it goes
through HashSet RemoveAlt (0x27d6a80). FindOrCreateHandle reuses a handle
only at the scale the font map asks for; at another it makes a new handle
with the same font, name and flags and adds it at its chain's head. The
stock game never maps a font at two scales, but the live Text scale change
does: a movie made before the change - the HUD's - gets a second
MenuFont_01 handle beside its old one. RemoveAlt takes the first entry
that is the handle OR has its name and flags, so freeing the old handle
unlinked the new one's entry and left the freed handle's in the set; the
next lookup read it. A live change followed by the Hunter's Dream's
cutscene crashed at 0x27d69f1 as the cutscene ended, 2 of 2, with no
plugin on.

A hook on RemoveAlt's entry now removes the entry that holds the handle
itself, as RemoveAlt unlinks one (engine/font_handle_set.cpp), and leaves
any other call - a key no entry holds - to the game's own code, so the
stock game, whose sets never hold two entries of one key, removes exactly
as before. Text scale changes while the game runs only with the hook in
place; without it the setting takes effect at the next start.
font_handle_set_test checks the removal against models of the game's add,
lookup and removal: the same tables where every key has one entry, the
right entry where a key has two, and a long run of live changes with texts
made and dropped that keeps the set to the handles alive (the game's own
removal leaves freed handles in it). decomp_font_set_removal runs the
game's own HashSet add, RemoveAlt and name hash on sets built in the test:
1,919 removals by pointer leave the bytes RemoveAlt leaves where every key
has one entry; with two handles of one key RemoveAlt keeps the freed one
200 times of 200, ours never. BBHOST_FONT_SET_TRACE=1 logs each removal the
game's matching would have made differently.

Checked headless on a copy of the saves: the crash's steps (Text scale 75%
at the start, a lamp travel to the Hunter's Dream, a live change to 60%, the
Dream's cutscene to its end) crash at 0x27d69f1 before this and run to the
end after it, the trace showing the one removal the game's code got wrong
done right; Text scale as shipped and never changed runs the same steps with
no second handle at all; nine live changes with the menu opened, two
cutscenes and four lamp travels, and thirty live changes with the menu after
each and five lamp travels, run to the end with never more than two
MenuFont_01 handles in a set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
… files in one by one - the save's folder stays, and File Explorer open in it no longer reports "Location is not available"

Windows has no RENAME_EXCHANGE, so a save's commit (a1d1702) was two
folder renames - saves/<dir> to saves/.<dir>.old, the stage to saves/<dir> -
and .old was then removed. A File Explorer window open in the save's folder
(players open it to restore a backup, as docs/running.md says) follows the
folder's rename to .<dir>.old, which is then removed: Windows reports
"Location is not available" for it, once per save, and the game saves at
every menu close. Linux did the same where the file system refuses the
exchange (exFAT, vfat, NFS).

Now, on Windows and wherever the exchange is refused, the save's folder is
never renamed or removed:
- the stage's files are flushed; a marker (.<dir>.commit) listing every file
  and folder in the stage is written under a name of its own
  (.<dir>.commit.new), flushed and renamed into place, so it is whole or
  absent;
- each listed file is moved from the stage over the save's own (MoveFileExW
  with MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH, tried again for
  ~5 s while another process holds the file, a read-only file made writable
  first; rename() on Linux, the folders synced after);
- the save's files and folders the list lacks are removed (the game deleted
  them), then the marker, then the stage.
The recovery before any mount finishes a commit whose marker is in place
(the files still in the stage moved, the extras removed) and drops a stage
without one, as before. A move refused for good leaves the marker and the
stage; a recovery that cannot finish either copies the files already moved
back into the stage (each under a name of its own, then renamed) and the
mount reads the save from there, as it read the renames' stage before;
where even that fails, the mount answers busy rather than read the save in
pieces. An unmount whose commit stopped makes no backup.

Linux with RENAME_EXCHANGE keeps the exchange, one step. The recovery still
finishes what v0.2.32-v0.2.34 left: their "rename" and "exchange" markers
and .old folders. The new marker's first line, "exchange 0 files", reads to
those versions' recovery as an exchange's marker that names neither folder:
an older bbhost started after a commit killed mid-way keeps the save as it
is and sets the files not yet moved aside in .<dir>.stage.unsure, where any
other first line would make it take the half-emptied stage for the save and
remove the rest (checked against 7e0b5e9's recovery).

Windows' moves, deletes and opens of the stage's files are all tried again
while another process holds a file for a moment, so an antivirus scan of
the files the game just wrote no longer fails the flush before the marker,
which dropped the session.

tests/save_commit_test: each way of committing - file by file (the exchange
not tried, as on Windows, and tried and refused), the exchange, and
v0.2.32-v0.2.34's renames, for their leftovers - a commit, a session that
never commits, a new save, a file the game deleted, folders kept, removed,
added and empty; file by file, a handle open on the save's folder through
the commit (as File Explorer holds one) still names it, where the renames
moved it; a move refused, the stage made whole again and read, a session
written into it, finished by a recovery or by the next commit. Then a child
process killed at every step - mid copy, mid write, after the flush, with
the marker written but not in place, in place, after each file's move,
after the extras' removal, the marker's and the stage's, after the
exchange, between and after the renames - then recoveries killed in turn,
recoveries killed while they copy a refused commit's files back, a new
save's commit, and markers cut short or changed: the save must be all of
the old one (killed before the marker is in place) or all of the new one
(after), byte for byte, with nothing left beside it. The child is forked
on Linux and the test run again on Windows, so the kills run there too.
All pass on tmpfs (93 kills), on NFS (109, the exchange refused by the file
system itself) and under wine (105).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…s, and that BBHOST_RENDER_SCALE=0 goes back to the whole picture at the Resolution

With Upscaling Off and a Resolution below the window's, #247 draws only the
3D at the Resolution and the post effects and the HUD at the window's size.
On a large window that is more for the GPU to draw: on an RTX 3070 Ti
laptop's 2560x1600 screen at a 1920x1080 Resolution, uncapped, about 6%
fewer frames than v0.2.34 (level at 60). Upscaling's section now says so,
and names BBHOST_RENDER_SCALE=0 - in run-bbhost.bat or before the command
on Linux - as the way back to v0.2.34's: the whole picture drawn at the
Resolution and stretched to the window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
…twelve headless runs of the instrumented build on an RTX 3070 Ti Laptop GPU under Windows, as the ones before it

The repository's profile was recorded at the code of the game's dialog
for plugin menus (480eee1). #247 and the fixes taken with it -
YEBIS's stretch check and the occlusion proxies' depth under a smaller
3D in draw_impl, the camera plugins' cutscene hand-back in the plugins'
frame, the loading tick and the plugins' view hook, the Text scale and
Resolution options - and the save fix changed what it was recorded
from: at #247's tip (d95ea34) it no longer matched 20 of bbhost's
functions, 16 of them with counts - draw_impl (87.6 billion counts),
plugins_frame, loading_tick, world_flags and view_hook among them,
87.6 billion counts in all that the build would have dropped, so those
functions would have been built without a profile.

Recorded as 480eee1's was, with the defaults and the plugins off but in
the PS1 run (BBHOST_PLUGINS=0, as the recipe has it), so Hunter Cam,
loaded for everyone and off until turned on, was loaded and idle in that
run alone: the Windows build of CI's script (tools/ci_windows.sh) with
-DBBHOST_PGO=generate, LTO off, from a clean tree of the code here but
the live Text scale's fix (its cold hook went in below the save fix
after the recording);
LLVM_PROFILE_FILE per run; headless, the flip clock at 60 and every
refresh rate asked 144. Each run continues the seed's save, travels
where it goes and holds 78 s with the camera turned every 8 s: uncapped
the hall (Oedon Chapel, the Cathedral Ward's lamp) with Off, TAA, DLSS,
FSR 3 and TAA with 8x anisotropic filtering, the burning Hunter's Dream
(flags 12601800 and 9462, then its lamp), Central Yharnam at the seed's
lamp, and the PS1 plugin there with its dither; at 60 the hall with TAA
and with DLSS, the burning Dream and Central Yharnam. All twelve exited
0 and wrote their profiles (the PS1 run's plugins theirs too);
llvm-profdata 22.1.6 merged the nineteen files, and
tools/pgo_store.sh wrote it with the tree as @src@: 14,619
functions, 6,035 of them named by path, none outside the tree.
Against the repository's profile, 14,545 functions keep their shape,
32 have another and 35 are new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012spzva3mKy1BjhbWqsFL7w
@droogie droogie changed the title Photo mode, by Nox-; plugins' menus in the game's own dialog; faster where the GPU has room (v0.2.35) Hunter Cam, by Kyo; plugins' menus in the game's own dialog; faster where the GPU has room (v0.2.35) Nov 15, 2026
@droogie
droogie marked this pull request as ready for review November 15, 2026 04:42
@droogie
droogie merged commit a317321 into master Nov 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant