Repository navigation
Releases
Stable release 0.1.7162
v0.1.7162
Stable release 0.1.7162 built and fully verified from f507bf3.
Highlights & Changes
Improved
-
Capture startup and release robustness: host GPU-load metrics now defer driver-state allocation until the first sample instead of allocating during static initialization. The low/high load snapping behavior is unchanged, startup no longer carries an uncaught static-initialization exception risk, and release packaging now finishes before a fatal lint result is propagated so the actual gate failure is reported accurately.
-
Hardware encoder open-failure trace diagnostics: when
avcodec_open2fails (includingh264_amf,hevc_amf,av1_amf, Quick Sync, and NVENC), Capture Engine now flushes the bounded thread-local libav debug trace captured during the failed open (and includes the last line inencoder=autoprobe rejections). This surfaces AMF's own internal property/init rejection lines (which FFmpeg's AMF trace writer logs atAV_LOG_DEBUG) without adding any log noise when opens succeed. -
Reliable, responsive overlay GPU load reporting: replaced raw single-poll Windows PDH
\GPU Enginereporting with a three-tier sampler and stabilizer. On NVIDIA GPUs (including multi-GPU systems, matched per adapter LUID via PCI bus and device), Capture Engine now integrates hardware PMU utilization samples directly from NVML (nvmlDeviceGetSampleswithnvmlDeviceGetUtilizationRatesfallback), measuring actual graphics/compute core activity instead of WDDM scheduler residency. This eliminates the 0%/100% jumping seen in high-FPS Direct3D 9 workloads under HAGS (Mirror's Edge) as well as inflated ~100% GPU load readings when FIFO V-Sync holds queued frames waiting on scanout. On non-NVIDIA GPUs (AMD, Intel) or when NVML is unavailable, Capture Engine reads adapter-wide WDDM node running times directly throughD3DKMTQueryStatistics(excluding video encode/decode/OFA/JPEG engines), detects invalid PDH counter statuses instead of publishing false 0% readings, suppresses single-poll WDDM dropouts while confirming real idle drops on the next poll, and polls active targets every 500 ms to match the overlay's text refresh.
Changed
-
FFmpeg 9.1 stable: updated the bundled custom FFmpeg from the pre-release
release/9.1snapshot to the upstreamn9.1release tag (commit74e4393595cf2b5857f0da925c4e0dd74ea306e5). The stable branch retains native AAC NMR coding and the project's seven local patches, so encoder quality, CFR timing, and audio/video synchronization behavior remain on the validated 9.1 codec path. -
Cleaner default
[AMF]config template:captureengine/config.ini.templatenow keeps the core AMF controls (usage,preset,qp,lookahead,spatial_aq,temporal_aq,aq_strength) active with accurate compatibility notes, and comments out advanced or streaming-only knobs (async_depth,preanalysis,preencode,high_motion_quality_boost,b_ref_mode,enforce_hrd,filler_data) whose defaults are already managed automatically. Existingconfig.inifiles continue to parse all keys unchanged.
Fixed
-
FFmpeg corresponding-source packaging with release tags: fixed source-archive generation to resolve an annotated FFmpeg pin such as
n9.1to its peeled commit before checking the clean checkout. The archive manifest records both the tag and exact commit, preserving fail-closed provenance without rejecting the released source. -
AMD AMF encoder option compatibility and failures: fixed several invalid option combinations that caused
h264_amf,hevc_amf, andav1_amfto fail encoder initialization or stall:- Changed
[AMF] preanalysisto default toauto(still acceptingtrue/false/enabled/disabledfor existing configs) soCQ/QVBR,HQVBR, andHQCBRrate-control modes automatically enable AMF PreAnalysis instead of explicitly forcingpreanalysis=0. - Stopped emitting mutually exclusive encoder-side
vbaq/aq_modeandhigh_motion_quality_boost_enablealongside PreAnalysis AQ/high-motion options, and explicitly emittedpa_lookahead_buffer_depth(raising to at least1when temporal AQ or PA high-motion boost is active, withpa_taq_mode=2for DX11 gaming) so AMF's 11-frame usage default cannot deadlock a smallerasync_depth. - Guarded incompatible combinations cleanly: disabled
preencode, PreAnalysis,spatial_aq(includingav1_amfaq_mode=caq),high_motion_quality_boost,enforce_hrd, andfiller_dataunderCQP; restrictedfiller_datatoCBR/HQCBRandpreencodeaway from low-latency usages; rejected 10-bit/HDRCQ/QVBR/HQVBR/HQCBRup front while cleanly disabling optional PreAnalysis assists on 10-bitP010input; and enforced AMF's1-51QVBR and1-255AV1 CQP lower bounds.
- Changed
-
ReLimiter 4.0 and ReShade add-on compatibility: made Capture Engine coexist cleanly with ReLimiter 4.0 and other ReShade add-ons so frame pacing, Streamline frame generation handoff, and both overlays work together:
- Step past peer threads whose kernel DACL explicitly denies suspend/context access (
ThreadQuiescenceon bothNtGetNextThreadand system-snapshot walks) so co-resident anti-freeze hook installer threads no longer block Capture Engine's inline/deep hooks. - Classify ReShade add-ons (
.addon64/.addon32/.addon) as third-party overlay/add-on modules without inflating the tracked overlay count, keeping Capture Engine from patching their IAT or hijacking theirGetProcAddress,nvapi_QueryInterface, andNvAPI_D3D12_SetFlipConfiglookups. - Preserve the real
sl.dlss_g.dll/sl.reflex.dll/sl.pcl.dllfunction pointers returned byslGetFeatureFunctionwhenever Capture Engine's direct inline hook is active (and always for third-party overlay/add-on callers), so co-resident tools discover the real Streamline plugin image and chained entry hooks run. - Inline-hook native
D3D12Core.dll/d3d12.dllID3D12CommandQueue::ExecuteCommandListsandSignalinstead of overwritingID3D12CommandQueuevtable slots[10]and[14]in place, preserving the class vtable slots that ReLimiter 4.0's queue-based pacer and Streamline GPU handoff require.
- Step past peer threads whose kernel DACL explicitly denies suspend/context access (
-
Direct3D 10 startup crash: fixed a stack overflow when a Direct3D 10 application loads part of the graphics runtime after Capture Engine initializes its hooks.
-
Windows build self-tests with launcher-provided Git settings: fixed false failures in the repository privacy and release authentication tests when the launcher supplies Git configuration with an empty value.
-
Build self-tests after a denied process launch: finish independent suites and retry the denied launch once after the parallel batch. Persistent launch failures name the suite and OS error in the build report.
Release Assets
captureengine-0.1.7162.7z: core product binaries, PDBs, FFmpeg closure, and default configurationcaptureengine-setup-0.1.7162.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)testapps-0.1.7162.7z: standalone graphics & frame generation test executables and diagnostic toolsffmpeg-corresponding-source-0.1.7162.7z: complete LGPL corresponding source archivelatest_manifest.json/latest_summary.txt: full build and verification evidence
Distribution & Licensing
- FFmpeg is distributed as shared libraries under LGPL-2.1-or-later; see bundled notices.
- Binaries are verified with PE hardening checks (ASLR, DEP/NX, CFG) and are not Authenticode-signed.
Stable release 0.1.7161
v0.1.7161
Stable release 0.1.7161 built and fully verified from 4a54619.
Highlights & Changes
New
- Display trace when the screen stops updating (opt-in): with
[Diagnostics] display_stall_trace=trueinconfig.iniand trace logging on, the elevation service keeps a bounded recording of the display pipeline (DirectX, graphics kernel, compositor, window manager and display driver events) while a game is tracked. When the game is in the foreground and keeps presenting but the screen does not change for a second or more, Capture Engine saves that recording into the session's log folder, so a black screen like GTA V Enhanced's after a save load can be traced without running any extra tool. When a game switches to a new swapchain and its first frame shows normally, up to two such recordings are saved as well, to compare against a black-screen switch. The setting is off by default because each recording takes up to 256 MB; it takes effect when Capture Engine starts.
Improved
-
Windows V-Sync override reported: with Windows' "Variable refresh rate" graphics setting on and a variable-refresh display, Windows replaces V-Sync (
SyncInterval=1, also whatvsync_mode=fifoasks for) with presentation that shows the newest frame at each refresh. V-Sync then no longer holds a game back, and above the display's maximum refresh rate the frames in between are dropped unshown, which judders. GTA V Enhanced with DLSS Frame Generation off in its menu rendered about 160 frames a second on a 144 Hz display and showed 144. Capture Engine now reports this once per game insensors.log(Windows replaces SyncInterval=1) and counts it (vrrSyncOverrides=). Windows offers games no way to opt out: queued V-Sync needs that Windows setting off, or a frame-rate cap below the refresh rate. -
Black screen after loading GTA V Enhanced with frame generation explained: the old picture can stay on screen for seconds after a save load with DLSS or FSR Frame Generation on, also without Capture Engine running. During the load the game calls Windows' cursor-clip function tens of thousands of times per second; Windows queues compositor work for every call and shows the new frame-generation swapchain only once that backlog has cleared. New developer tools in
tools/tracing/read this from display stall traces (dwm_flood_digest.py,etl_payload.py) and reproduce it without the game (run_flood_repro.py). -
Faster frame-generation test suite (development): the flow scenarios, which run Capture Engine's real overlay and frame-generation switching code against a software-rendered (WARP) game, finish in a sixth of the time (805 s before, 111-143 s after for all 272 scenarios on an 8-core PC, depending on other load). Nearly all of their time was the software rasterizer drawing Capture Engine's display-gamma pass and overlay on every shown frame, so a scenario's frame is now 256x160 and the overlay panel uses its smallest font at a fixed 100% scale: the panel keeps its normal layout inside the frame on every PC, whatever the monitor's scale, and every coverage check now also fails when the panel would reflow or leave the frame. The post-process pass (sharpening and display gamma) still runs on every frame with the product's commands, routes and accounting, but shades only a 16x16 corner, since the scenarios check where and when it runs, not the pixels it writes; scenarios that read recorded or displayed pixels, and every scenario under
--verify, shade the whole frame. The two scenarios that judge the overlay's pixels keep a 640x360 frame with the panel at 150%. Each scenario process now runs on one physical core of its own: spread over all cores, the rasterizer spent about half its processor time handing work between its own threads. Scenarios, frame counts and checks are otherwise unchanged. -
Overlay compatibility regression checks: exercise stacked launcher and effect overlays, overlays that stop drawing, frame-generation switches, and HDR10/scRGB output with FSR, DLSS and XeFG. The checks require one overlay draw per eligible output, correct frame-generation status and no DirectX 12 debug-layer errors.
-
Screen-change timing log: why a process's frames do not reach the screen: when presents expire without a flip and the desktop compositor takes over, the
[DisplayTiming]lines now report how many presents and flips the compositor made during the episode and how it ended the process's presents (composition tokens confirmed, retired or discarded). The periodic health line carries the same counts. This tells "the compositor did not present" from "it discarded the frames" from "Capture Engine failed to attribute them". The shared tracing session subscribes to two more Windows composition events for it. -
Black-screen diagnostics after a DLSS Frame Generation handoff (GTA V Enhanced): the log now times the first change of the screen after a Streamline swapchain handoff (
firstScreenChange), and when the screen stops changing although the game keeps presenting it records one[SCANOUT STALL]snapshot per episode: the swapchain's state, the results its Presents returned (Windows drops an occluded window's Presents), the window's visibility, cloaking, foreground state and flip blockers, and the visible windows above the game. Running episodes repeat a short line every two seconds and end with their duration and what changed first. -
Streamline swapchain-destroy diagnostics: the log always records when Streamline calls its swapchain-destroy callback; with trace logging it also records which module releases the native chain and how many references it still holds, with the call stack of the releasing frames, and how long the NGX feature creation takes. This shows whether a refused FSR swapchain was pinned by a skipped Streamline cleanup.
-
DLSS Frame Generation teardown diagnostics: record the title's Streamline feature-load and resource-release calls, their results, and the options flags that govern retention when frame generation is off.
-
DX12 swapchain replacement diagnostics: report the back-buffer reference balance for the affected window and resize, with caller stacks for the first GetBuffer sites. A refused replacement retries the minimal cleanup only when Capture Engine released a startup reference.
-
Diagnosing frame-generation switch crashes (GTA V Enhanced DLSS FG to FSR FG): when Windows refuses the new swapchain because the previous one still holds the game window, the log now says whether each of the window's earlier DirectX 12 swapchains is still alive or was destroyed, which module released the last reference of a destroyed one, and which modules still hold backbuffer references. Capture Engine observes this without holding a reference on the swapchain or patching any of its functions. The log also names, in one line, the modules outside DirectX that still hold the old swapchain's backbuffers (in the GTA crash: Streamline's DLSS-G plugin).
-
Exact build of every loaded upscaler and frame-generation DLL in the log: the line for each loaded Streamline, NGX or FidelityFX DLL now includes its full file version and build string (for example
2.14.16.0 SHA: b742680bf v2.14.16-rc2). Two builds can share a version number and a file size, so this is the only way to see from a log which build a session used.
Fixed
-
False DLSS Frame Generation detection on version-1 Streamline queries (RoboCop: Rogue City): gated
slDLSSGStatecapability (numFramesToGenerateMax) and completion-fence (inputsProcessingCompletionFence/ fence value) reads onstate.structVersionso older games passing version-1 state structs never interpret uninitialized padding or adjacent stack memory as active frame generation while DLSS Frame Generation is off. -
Inject overlay briefly disappearing when enabling DLSS Frame Generation in version-1 Streamline titles (RoboCop: Rogue City): accepted same-queue cold-start Streamline outputs proven via the native swapchain submission path while passive
ExecuteCommandListsprobing is still deferred during startup, and kept the pre-Streamline overlay drawing until confirmed handover on proven original-queue Streamline swapchains. -
Inject overlay graph timing in game menus with FSR Frame Generation (GTA V Enhanced): corrected repeated graph positions when the game submits frames faster than the display refreshes. A subsequent session still reported judder, so smooth motion on the displayed images remains under investigation. The graphics test harness can now compose retained and per-frame buffered FSR UI textures and read back every frame FidelityFX hands to the screen, after other overlays and Capture Engine have drawn. From those pixels it checks that the overlay, the game's HUD and fresh text are present exactly once, and that the frame-time graph moves by the same distance on every shown frame through FSR Frame Generation, the menu pause and resume. The
[OverlayGraph]log line now counts graph holds and catch-ups separately for game frames and for generated frames, measured against the time each frame stands for, so a session log shows which kind stutters. A route's first frame after the overlay switched between game frames and generated frames is no longer measured against that route's last frame from seconds earlier, which had reported steps of thousands of graph slots at every frame generation switch. In the next session's menu, the overlay drew every game frame and its graph moved evenly against the game's own clock, while the game sent about 157 frames a second to a 144 Hz display withvsync_mode=fifo. The cause is fixed separately below (DLSS Frame Generation stayed loaded after the switch). Until now the hook log recorded the VSync settings of the final Present only once, on the first frame of each thread, so it could not tell whether the sync interval was lost before Direc...
Stable release 0.1.7160
v0.1.7160
Stable release 0.1.7160 built and fully verified from 5740d37.
Highlights & Changes
Config Notes ([Overlay] Defaults)
Existing config.ini files keep their current values for these two [Overlay] settings; update them in [Overlay] if you want the new defaults:
bg_alpha:0.50→0.72frametime_color:00FF00→B8FA05
New
-
Recordings use the application profile name in output files: when recording through a named application profile (
[Profile.<name>]), the resulting file name replacescapturewith the game profile name (for example,hots_20261106T204334392Z_p25304_s2.mkvorStrange Brigade DX12_20261106T204334392Z_p25304_s2.mkv) across inject, WGC, and desktop duplication captures. Audio-only recordings append_audio(<name>_audio_*.mka). Profile names with spaces and safe punctuation are preserved while invalid characters are sanitized, and unprofiled captures continue to usecapture_*. -
Four overlay layouts: the in-game overlay was hard to read at a glance, so
[Overlay] layoutnow chooses how it arranges its values, live while a game runs.hero(the new default) shows FPS as one large number above its graph and puts GPU and CPU in one table.listkeeps one row per value, grouped, with aligned columns.metersshows load and memory as bars.stripis a narrow band along the screen edge that wraps in small windows. All four show the same values. -
Overlay font choice:
[Overlay] fontpicks any installed font andfont_weightits weight;font_sizenow works too. A font that is not installed falls back to the default instead of whatever Windows substitutes. Font settings apply the next time the game starts.
Improved
-
Build verification: split oversized configuration and overlay test groups and cast media shared-memory slot indices so the complete verification gate and clang-tidy ratchet run cleanly without relaxing source-size limits.
-
D3D9 hook recovery and build verification: bounded hook restoration now selects slots in table order. Explicit graphics enum defaults in test fixtures and encoder texture export, pointer conversions and test arithmetic clear the Windows verification regressions.
-
Overlay colors now mean something: values stay neutral until they need attention. Load turns amber at 85%, memory amber at 90% and red at 97% of its total, and recording shows as white text on a filled red chip that reads on any scene. A changing digit count no longer moves other values or resizes the panel, and a sensor dropping out reads
--in place. -
Sharper, steadier overlay text: numbers no longer twitch sideways as their digits change, whatever the font, and the overlay now uses Bahnschrift SemiBold when it is available, which needs less row height for the same digit size. A font that is not installed is now really detected, so the fallback to Segoe UI and Arial works.
-
Overlay stays readable on bright scenes: the default panel opacity rose from 50% to 72%. At 50% over a white scene the panel turned mid-grey, where red REC text all but vanished. An existing
config.inikeeps its ownbg_alphauntil you change it. -
Graphics API translation reporting in the overlay: when games run through 3D API translation layers or wrappers, the overlay now reports the complete translation chain ending in the underlying graphics driver rather than an ambiguous wrapper label. This clarifies the active presentation API and intermediate steps, reporting pipelines such as
DX9 -> Vk (DXVK),DX12 -> Vk (VKD3D-Proton),DX9 -> DX12 (DXUP),DX9 -> DX11 -> DX12 (DXUP), andDX11 -> DX12 (DXUP). -
WindowHeartbeat presentation-stall recovery works without the elevation service: when CaptureEngine has sufficient rights to create an ETW session itself (such as running as administrator), background window stall recovery (
[WindowHeartbeat] enabled=true) now opens its own dedicated trace session (CE_PresentProgress_<pid>) enabling only Microsoft-Windows-DXGI Present start and return events when the elevation service is disabled, unreachable, or refuses the display lease. Unelevated runs continue to require the elevation service. -
Lighter AV1 recordings of a still pointer: WGC and desktop recordings with a visible mouse pointer encoded every repeated frame again in full, which cost file size and encoder headroom on a mostly still desktop. Repeated frames are now free unless the pointer actually moved or changed shape.
-
Less CPU per frame in D3D11 and D3D12 games: CaptureEngine no longer searches for its Vulkan layer on every Present in games that do not use it, which removes most of the startup cost of its Present hook.
-
Resilient recording output with local write-ahead spooling and automatic network-share repair: local video recordings now write through
ResilientOutputSink, which writes directly to the staging file while destination storage is healthy and transparently fails over to an append-only local spool (%LOCALAPPDATA%\CaptureEngine\spool) if a network share or drive stalls and drops the open file handle. Queued packets, encoder flush packets, and container trailer seek-back patches (MKV Cues, SeekHead, and segment duration; MP4moov) are preserved in the local spool and replayed onto the destination file as soon as the target path is reachable again—either mid-recording, during finalization, or byRecoverInterruptedRecordingonce an offline share reconnects.
Fixed
-
Graphics runtime detection and trace startup: translation labels follow late module and device changes. Streamline ignores module-query answers that name an unrelated image, and DLSS logs identify mapped copies. The window heartbeat keeps the original ETW open error through cleanup.
-
Frame-generation status and pacing: DLSS publishes its active state and factor together, and a default Streamline poll preserves the viewport's explicit factor. Interposer workers keep separate output deadlines. With Vulkan async present, Smooth Motion paces the actual outputs while ordinary rendering keeps acquire pacing.
-
Screenshots with FSR frame generation: overlay-inclusive captures accept a compatible owner-queue device view. When the reserved overlay slot is busy, the request waits for another Present before submitting the composite.
-
AAC retries and interrupted output: a rejected AAC quantization pass restores the encoder's rate-control history. Reconnecting to output storage keeps the spool writer open until replay succeeds. Recovery retains corrupt spools and salvages a partial final record only after a crash.
-
Stopping or restarting an active recording: media workers and the encoder now hand off one shared-state snapshot, so a finishing session cannot leave late updates in the next session. D3D9 shared-memory uploads use the dimensions and pitch of the actual queued pixel slot.
-
Vulkan zero-copy capture after resize or restart: offers identify the adapter that allocated the textures. The Vulkan producer owns the timeline fence and commits the imported pool after synchronization is ready. An incompatible import continues on the existing interop route.
-
Overlay layout and fonts: the starting-recording blink keeps its row and panel size. Strip uses wrapped vertical rows when a cell exceeds the viewport, and strict font selection rejects substitutions even when a permissive lookup previously cached them.
-
D3D9 overlay rendering: the overlay draws with normal stream frequency and restores the application's instancing and vertex input state afterwards.
-
Unicode recording filenames and AV1 repeats: long profile names keep complete characters at the filename limit, and AV1 repeats no longer inherit overlay metadata from an earlier encoder submission.
-
Present stall and pacing diagnostics: concurrent presenter threads keep their own stack-sample identity, and restarting a measurement uses one transition sample. Forwarded Present1 and guarded Steam calls include timing, and held frame rows retain source metrics and emit their pacing trace once.
-
Smooth Motion on dedicated presenter threads: submission samples now sustain their own cadence window and yield to direct application Presents when both signals exist. A worker changing threads no longer supplies a false 1:1 verdict.
-
ETW trace properties buffer sizing and session reclaim validation: trace property buffers now declare their full capacity and clamp session name lengths to prevent buffer overruns during trace control calls. Session reclamation validates logger name offset bounds and alignment, and feed startup captures specific error codes when opening own trace sessions.
-
Graphics runtime module identity verification: streamline interposer checks and DLSS version reporting now verify that the loaded image path matches the queried module name, preventing foreign hook answers from blocking plugin placement or misreporting version numbers.
-
Graphics API label caching and DXVK bootstrap admission: overlay API labels across D3D12, D3D9, D3D8, and DirectDraw now cache their translation evidence against the loaded module generation, eliminating repeated per-frame loader lock queries and false D3D12 detections from mapped DLLs. The D3D12 factory hook bootstrap validates verified DXVK runtime evidence, preventing premature DXGI factory patching in DXVK games before Vulkan layer load.
-
Interposer output pacing under concurrent workers, Reflex, and Vulkan: output groups and schedule deadlines are now tracked per worker thread rather than on a single global slot, preventing interleaved worker presentations from resetting in-flight deadlines. Pacing under Smooth Motion in Vulkan now spaces outputs at queue present while throttling input at acquire, and explicit Reflex post-...
Stable release 0.1.7159
v0.1.7159
Stable release 0.1.7159 built and fully verified from 94c234a.
Highlights & Changes
Improved
-
Stable releases fail fast and no longer depend on FFmpeg source servers mid-build: a release now runs a one-minute preflight before compiling anything (lint, changelog, size ratchets, tool self-tests, toolchain health, and a verified prefetch of every FFmpeg and dependency source into a machine-wide cache with git mirrors), so outages of git.ffmpeg.org, git.videolan.org, SourceForge or the MSYS2 mirror and predictable gate failures stop costing 10-50 minute runs. The same preflight runs locally via
python tools/stable_release.py dispatch, which also checks the release runner and warns when the build toolchain changed since the last successful FFmpeg build. Release lint reuses clang-tidy results the developer tree already computed. Integrity is unchanged: FFmpeg, its dependencies and the product are still built from verified source by the attested run, and the published verification manifest now lists the exact toolchain packages that built the release. -
Builds on one PC no longer race each other:
build.pytakes a machine-wide lock shared by every checkout, worktree and the release runner, waiting for (and naming) a build already in progress instead of competing for the shared toolchain and FFmpeg install. -
Inject overlay "not recording" warning:
[Overlay]gainswarn_not_recording(defaults tofalse), rendering a blinking "NOT RECORDING" warning in the in-game overlay when an injected game is idle. When recording starts, it transitions through startup status to the live recording timer. -
Desktop overlay coexistence with inject overlay:
[DesktopOverlay]gainscoexist_with_inject(defaults tofalse), allowing the desktop recording indicator and idle "NOT RECORDING" warning to remain active even when an injected game is focused and running the inject overlay. -
Overlay frame-time graph source: the graph now identifies display timing and present-timing fallbacks, including composition, stale samples and unavailable collection. Startup shows "Display starting" until a real display interval arrives; source and history changes refresh labels and statistics immediately without slowing ordinary graph-only draws.
-
Application profiles with many injection targets: the complete selector policy is published atomically, so long path lists cannot drop a target or a more-specific injection restriction.
-
Application-audio profiles with many path selectors: the audio worker now receives its complete selection policy through shared memory, so long profile lists are not limited by the Windows process command line, and parent/child launcher trees matched by a more-specific path profile are excluded as a whole from generic fallback profiles.
-
Application profiles can distinguish installations of the same executable:
processnow accepts a Windows image-path suffix as well as an executable name. For example,process=Modded\game.exematches that folder at any drive/root, whileprocess=D:\Games\Modded\game.exematches that full installation; a matching path-specific profile takes precedence over the genericprocess=game.exefallback. Paths use either slash direction, complete folder boundaries and case-insensitive comparison. Selector matching is UTF-8/UTF-16 end to end, so Cyrillic, CJK and other Unicode executable names and folders work regardless of the Windows active code page, with a kernel per-PID path fallback when direct process-handle access is denied. The same identity is used for injection, WGC/DXGI selection, per-profile overrides, desktop overlay settings, window heartbeat and application audio.
Fixed
-
AMD AV1 HDR recordings play with a magenta tint: recordings encoded with
av1_amfcarried mastering-display metadata in the wrong units (white point ~(0.239, 0.251), 39062-nit peak), so players such as mpv shifted colors toward pink and washed them out. The bundled FFmpeg now writes AV1 fixed-point values, matching the container metadata. Existing recordings can be repaired losslessly withffmpeg -i in.mkv -map 0 -c copy -bsf:v filter_units=remove_types=5 out.mkv, which keeps the correct container metadata. NVENC, Quick Sync, Media Foundation and AMF H.264/HEVC are unchanged. -
Overlay composition detection after an own flip: a compositor candidate whose frame already completed on the game's own flip no longer counts as a displayed compositor frame. This prevents false composition confirmation and unnecessary present-timing fallbacks; rejected duplicate claims are counted in timing diagnostics.
-
Overlay display timing during startup and recovery: missing startup flips no longer force the graph onto present timing without evidence that the desktop compositor is showing the game. Recovered own flips restore display timing without the previous ten-second hold, while real mixed composition remains tracked.
-
Performance CSV logging after shutdown and reopen: every new log file now starts its frame sequence and timing summary afresh, including when a resident hook resumes logging after the previous file was already closed.
-
Regression-test reliability: performance-log rebind and NGX module-copy tests now own separate temporary directories for every fixture lifetime, avoiding access-denied and cleanup failures when Windows is still retiring a previous test's files.
-
Application audio when a child process starts playing: active process-tree captures now recheck profile exclusions on audio-session changes and before activation. A child owned by a more-specific profile triggers clean process selection again, preventing duplicate or excluded audio from continuing through its parent's capture; unrelated process trees leave healthy captures running.
-
Background-window recovery after profile changes: newly added executable-path rules now apply to games already being watched. Disabling recovery, removing a profile, or shutting down CaptureEngine queues restoration of any pending move or resize without overwriting geometry changed by the user or game.
-
Vulkan profiles with injection disabled: an explicitly excluded child process can no longer inherit Vulkan layer eligibility from its parent. The current host's denial also takes precedence over an older persisted admission.
-
Lint and line-length ratchets: fixed Vulkan layer format specifiers, suppressed test suspicious-include warning, and tightened clang-tidy baseline.
-
Build tool filesystem resilience on Windows:
safe_delete_fileandsafe_remove_treenow clear read-only file attributes before deletion and handlePermissionErrorwhen removing Git pack objects or trees marked read-only on Windows, preventing false process-lock detection and directory cleanup failures. -
FFmpeg commit checkout during clean clone:
_clone_oncenow explicitly fetches a pinned commit when it is not present on the remote's default branch, preventing checkout failures during initial clones from mirrors such as GitHub. -
Python lint style compliance: wrapped long test call in
test_ffmpeg_pin_check.pyto adhere to the 120-character line length limit. -
Verification reliability: isolated temporary log-sink test directories and updated audio route checks for complete selector policies.
-
Application-audio worker integration: fixed the shared policy transport boundary so capture and media components can build together.
Release Assets
captureengine-0.1.7159.7z: core product binaries, PDBs, FFmpeg closure, and default configurationcaptureengine-setup-0.1.7159.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)testapps-0.1.7159.7z: standalone graphics & frame generation test executables and diagnostic toolsffmpeg-corresponding-source-0.1.7159.7z: complete LGPL corresponding source archivelatest_manifest.json/latest_summary.txt: full build and verification evidence
Distribution & Licensing
- FFmpeg is distributed as shared libraries under LGPL-2.1-or-later; see bundled notices.
- Binaries are verified with PE hardening checks (ASLR, DEP/NX, CFG) and are not Authenticode-signed.
Stable release 0.1.7158
v0.1.7158
Stable release 0.1.7158 built and fully verified from ad3a146.
Highlights & Changes
Improved
-
Stable release verification: oversized hook and build-tool files were split, and graphics, audio and test warnings that blocked the release checks were corrected. The accepted-warning baseline is now tighter.
-
A recorded microphone that keeps losing data is now named in the log: a webcam's built-in USB microphone set as the Windows default input reported a data discontinuity every 40 ms for whole recordings, and the game's frames stalled 2-5 ms on that same clock while it was recorded (Heroes of the Storm micro-stutter during inject recordings). The log only showed the first eight discontinuities and never said which device "default" was. Recording audio sources now log the device they resolved to (
[AudioCapture] Endpoint resolved: 'Mikrofon (USB Microphone)' (capture)), the face camera logs which camera it opened, and a source that keeps losing data gets a warning naming the device and its glitch interval ([AudioCapture] WARNING: input device '...' keeps losing capture data: 125 WASAPI data discontinuities in 5.0s, typically one every 40.0 ms ...), a reminder every 30 seconds while it lasts, a line when it stops and a per-recording total. -
The hook log lists the graphics environment variables the game received: variables such as
VKD3D_SWAPCHAIN_PRESENT_MODE,VKD3D_DISABLE_EXTENSIONS,DXVK_*orVK_LOADER_*only take effect when they reach the game process itself, which a launcher started before they were set never passes on. The hook log now names everyVKD3D_*,DXVK_*,PROTON_*,VK_*,__GL_*,DXGI_*andD3D12_*variable the game process sees (Environment: 2 graphics variable(s) reached this process: ...), or says that none did. -
NGX parameter diagnostics: their format arguments are now checked by the compiler, catching mismatched placeholders before they can produce incorrect logs in an injected hook.
-
DLSS frame generation flip-metering bridge for vkd3d-proton (experimental / in progress, proper driver metering does not work properly yet): with vkd3d-proton and dxvk-nvapi in
custom_dll_paths(GTA V Enhanced), DLSS frame generation's generated and real frames reached the screen whenever the GPU finished them, so a 2x batch alternated between short and long frames even though the game presented them evenly. On native D3D12 the NVIDIA driver spaces each batch itself through flip metering, which the translation layers do not provide. CaptureEngine now carries the bridge plumbing: it answers the frame generator's flip-metering request (NvAPI_D3D12_SetFlipConfig) when the loaded NVAPI has none, and passes each batch size to NVIDIA's Vulkan present metering on the batch's first present, matched through the frame id both sides already carry. Proper driver-level flip metering in vkd3d-proton does not work properly yet: while the bridge passes the driver's response back so frame generation falls back to CPU pacing (feedback=0x1/numFramesPerBatch=0) rather than leaving batches unpaced, the driver does not yet meter the translated swapchain flatly like native D3D12. The plumbing, engine-name aliasing (vkd3d->vkd3d-proton), and diagnostics are in place to continue investigating why the driver declines metering on translated swapchains. The logs show the status:NVAPI flip metering: SetFlipConfig numFramesPerBatch=2 presented=2 ... feedback=0x0in the hook log andthe driver meters the batchinvulkan_layer.logwhen accepted;feedback=0x1andthe driver did NOT meter the batchmean the driver declined and frame generation falls back to pacing itself. -
Slow D3D12 Present calls during a recording say what they waited on: the hook log now has
[PRESENT STALL]lines. Every 10 seconds in which a frame was recorded or a Present call took 2 ms or more, a summary compares the Present time of recorded and other frames. For each slow call it says whether the GPU still owed earlier recording copies when the call began, and whether copies finished while it blocked. The first slow calls are also logged one by one ([PRESENT STALL] slow down-call #1 3.48ms captured=1 copies(... inFlightAtEntry=2 retiredDuringCall=1) capture=live). The GPU also timestamps each frame's recording copy inside the copy's own command list, so the summary says how often and by how much the GPU was still behind the frame when the game called Present, and each logged slow call gets a follow-up saying whether the call returned when the GPU finished the frame or blocked on something else ([PRESENT STALL] slow down-call #1 copy on GPU: start=+2900us end=+3100us returned=+3200us (from call entry) -> returned-at-copy-end). The timing adds no work outside that command list. When the display timing stream runs (the overlay's default frame time source, and every inject recording), each frame is also followed through the graphics kernel: when its Present reached the kernel, when the GPU finished it, when the flip was programmed and when it reached the screen. A second summary line compares these steps for recorded and other frames, and counts which step each slow call returned right after, including the previous frame reaching the screen. Each logged slow call gets a third line once its frame is on screen ([PRESENT STALL] slow down-call #1 captured=1 flip: start=+40us submit=+100us ready=+150us programmed=+2900us screen=+3150us returned=+3200us previousScreen=-3990us (from call entry) -> returned after its flip on screen). The[DisplayTiming]health line counts the milestones it received (milestones(ready= programmed=)). While an inject recording runs in a 64-bit game, a Present call that is still blocked 1.5 ms after it started also gets the presenting thread's call stack logged as module offsets ([PRESENT STALL] stack #1 down-call blocked 1.62ms ...: ntdll.dll+0x... dxgi.dll+0x...), for the first eight such calls and then at most once every 10 seconds. The game's thread is paused only for the time it takes to copy its registers and stack. When a 10-second window holds at least 12 slow calls, a period line also says whether they follow a clock from outside the game, such as a device or driver that disturbs the system at a fixed rate, and at which period, or whether they follow the game's own every-Nth-frame cadence ([PRESENT STALL] period window=10046ms calls=1413 slow=127 lock=OUTSIDE CLOCK 40.00ms (25.00 Hz) R=0.53 ...). -
Application-audio logs stay compact during normal backlog correction: routine active/slack changes now produce at most one summary every five seconds per source, with exact observed transition counts, state durations, backlog ranges and peak compensation. First activation and exceptional states still report immediately; epoch resets and recording stop flush pending summaries so short activity is retained. Audio correction and capture timing are unchanged.
-
Log bursts wake the logger immediately: committed hook and Vulkan log records now signal the logging service instead of waiting for its next 100-250 ms poll. This removes idle polling delays that could fill the shared ring and force file writes onto the application threads; shutdown still takes priority over pending logs.
-
Application-audio teardown diagnostics expose failed workers: the optional probe now tests capture reuse, cancellation and the worker entry without an unrelated COM apartment keeping them alive, requires actual audio in stable-source runs, and fails on child crashes or timeouts.
-
Scaled recordings leave more CPU time for capture and encoding: unchanged frame sizes and scaling settings now reuse the Lanczos weight tables instead of rebuilding them for every video frame. Image quality and scaling settings are unchanged.
-
The face camera reads NV12 and YUY2 frames directly and converts them in its overlay draw instead of through Media Foundation's VideoProcessor: webcams that output NV12 or YUY2 natively—and MJPEG or H.264 cameras whose decoder outputs NV12 or YUY2—no longer run Media Foundation's D3D11 Video Processor MFT on the recording device to convert every camera frame to RGB32 first. CaptureEngine now requests NV12 or YUY2 output with advanced video processing off, keeps the smaller YUV frames in its camera history (1.5 B/px for NV12 and 2 B/px for YUY2 instead of 4 B/px for RGB32), and converts to RGB inside the single composite draw using the camera's colour matrix (
BT.709,BT.601orBT.2020, defaulting by resolution when omitted) and range (limitedorfull). Cameras whose native mode is alreadyRGB32/ARGB32continue to pass through unchanged ([FaceCamera] Native YUV path: subtype=... matrix=... range=... gpu=0|1in the media log). -
Scaled, FP16 SDR and non-sampleable recordings convert on CaptureEngine's own shaders instead of the D3D11 VideoProcessor: scaled recordings (
[VideoScaling] enabled=true), linear FP16 SDR games (scRGBswapchains) and non-sampleable or multisampled capture surfaces no longer fall back to the driver'sID3D11VideoProcessorBlt, whose GPU work on NVIDIA queued behind NVENC and could starve high-frame-rate recordings. CaptureEngine now scales both SDR and HDR frames with a separable anti-ringing Lanczos shader (quality=normaluses 2 lobes,quality=bestuses 3;sharpness=0..100scales the sharpening side lobes while clamping each pass to the main lobe's sample range so edges sharpen without halos, and downscaling widens the filter over the ratio so fine detail cannot alias), normalizes linear FP16 SDR inputs to sRGB in the shader, and copies or resolves non-sampleable inputs before conversion. Because[VideoScaling] sharpnessandqualitynow drive this uniform shader scaler rather than each GPU driver's proprietary VideoProcessor edge enhancement, scaled SDR recordings have consistent sharpness and l...
Stable release 0.1.7157
v0.1.7157
Stable release 0.1.7157 built and fully verified from 637d729.
Highlights & Changes
Improved
-
NVIDIA LOD-spread fix documentation: clarified that
nv_lod_spread_fixforces the High Quality (HQ) texture filtering setting in Vulkan and OpenGL because the driver erroneously keeps the lower-quality Quality (Q) setting forFERMI_UNOPT_LOD_SPREADeven when HQ is selected (unlike D3D10–12). Documented the real visual effects: excessive temporal shimmering with negative mip bias and excessive blur with positive mip bias. -
AAC audio encoding: updated FFmpeg to a pinned revision of the 9.1 release branch with newer NMR quality and bitrate-control refinements. Recordings continue to use NMR's best-quality mode.
-
10-bit desktop and WGC recordings use a third less video memory for the smoothness buffer: the buffered frames (300 ms of delay, 64 frames at 4K120) used to keep each 10-bit value in 16 bits. They are now stored packed at 16 bits per pixel instead of 24, and the encoder rebuilds exactly the same 10-bit picture from them: at 4K the buffer shrinks from about 1519 to 1013 MB, for DXGI duplication and WGC, SDR and HDR alike. The delay, the frame count, frame selection and audio sync are unchanged, and the extra GPU work per frame is about what the old copy cost. The media log names the route (
[WGC] Retained reservoir route: ... -> P010_PACKED16 (yuv (packed P010))) and counts the rebuilt frames (packedUnpacks=).wgc_retained_packed_p010=falsein[WGC]keeps the unpacked frames, for comparison. -
The first recording after starting CaptureEngine no longer spends about a second compiling shaders: the color conversion, buffered-frame, cursor, face camera and overlay shaders of the recording path are now compiled when CaptureEngine is built, not at the first recording start of every session; that was about 0.65 s for the cursor and camera overlay alone, on a CPU core next to the game. All capture methods, codecs, bit depths and SDR/HDR use them. The media log shows
Shader bytecode: precompiled=N runtimeCompiled=0. -
Faster build gate (development): the unit tests and the Python tool self-tests now run while the frame-generation flow scenarios run, instead of before them; they used one processor core while the scenarios keep all the others busy, and added about 95 seconds to every gate. An unfiltered gate skips the flow scenarios entirely when nothing they are built from or run with changed since their last passing run (their sources and headers, the version resources and export lists of the stand-in runtimes, the libraries and linker they are linked with, the build scripts, the compiler, their config and Windows' WARP and Direct3D 12 modules), which is the case for changes to the app, the media engine, settings and the other parts the scenarios never load;
--rerun-flow-testsand--verify(also--verify-runtimeand a resumed verification) always run them. Any failed flow run, forced or filtered ones included, makes the next gate run them again, and a flow-test program that cannot list its scenarios fails the gate instead of passing with nothing run. The slowest scenarios now start first, and the log lists them with their times.
Fixed
-
PC latency no longer drops out when frame generation changes its factor: the overlay's PC latency row started its measurement over whenever the frame-generation factor changed, and showed
PC Latency --for about a second until it had new samples. DLSS dynamic multi frame generation switches between 2x, 3x and 4x by itself during normal gameplay, so the reading kept dropping out there. The measurement now carries across factor changes while the same frame generation keeps running; switching frame generation on or off, or to another kind, still starts it over. The overlay log's[Overlay] PC latency chainline counts these changes (factorChanges=). -
The frametime graph stays stable while a game is minimized or composed by the desktop: occasional game-owned flips could alternate the graph between presentation and display-change timing, repeatedly changing its history even though the game stayed in the same presentation mode (seen in The Talos Principle Reawakened's minimized menu). The sensor now keeps every sample in its established composed mode until it confirms that the game's own flips have resumed without compositor frames. Latency keeps all timestamps, and the sensor's bounded health log counts these mixed completions as
ownWhileComposed=. -
WGC and desktop recordings keep their video timing aligned when the game's frame rate changes: smoothing capture timestamps could leave a permanent offset of several milliseconds after the source slowed down or sped up. The smoother now fits recent source timestamps to keep its phase aligned while preserving smooth frame selection, real stalls, and the existing synchronization limits. The media log identifies the new timing model once per recording as
model=source_phase_fit. -
WGC and desktop recordings avoid a frozen picture at the start when the game runs at or below the recording frame rate: the startup buffer now waits for the number of frames the source can deliver, rather than always expecting the recording frame rate. This avoids an unnecessary full-second wait and the roughly 0.3-second frozen opening seen with an 84 fps game recorded at 120 fps. At matching frame rates, startup selects a frame that leaves the full required reserve. Old buffered frames make room before the capture pool starts rejecting new ones. Startup frames lost to pool pressure are reported in the media log and count against the smoothness verdict.
-
The media log reports the buffered-frame converter once per recording:
[RetainedYuv] Ingress converter releasedcould appear up to three times with the same counts when a recording stopped; the counts now cover one recording. -
WGC and desktop recordings avoid a freeze when the cursor or camera first appears: cursor and retained NV12/P010 overlay shaders are prepared before video frames are encoded, including when an overlay starts out hidden. The first cursor frame previously paused encoding for roughly three quarters of a second.
-
Recording summaries report real repeat counts: source-limited and timer repeats remain accurate when shared recording status resets at shutdown; summaries could previously claim over four billion repeats and give a misleading smoothness verdict.
-
DXGI duplication recordings no longer fall back to the larger RGB frame buffer at random: the first desktop frame proves the capture format, and CaptureEngine set up its frame buffer for that format from two threads at once. Now and then the buffer came out in one format while its NV12/P010 views were made for another; the capture then kept its frames in full RGB for the whole recording (about 1.3 GB more video memory at 4K in 8-bit for the same delay, 2025 instead of 759 MB) and logged
Retained-YUV plane RTV creation failed ... 0x80070057. The capture thread now waits with the first frame until the format is adopted, then delivers it; the log showsDuplication delivered format adopted ... frame delivery opened. -
Desktop recordings show the mouse cursor and the face camera again: since v0.1.7155, WGC and DXGI duplication recordings keep their buffered frames in the encoder's own NV12/P010 format and draw the cursor and the face camera into each frame from a small separate layer. Neither could be drawn into that layer, so those recordings had no hardware cursor and no face camera at all; only a software cursor Windows paints into the desktop image itself (while dragging a window, for example) showed up. Both are drawn again, on every frame including repeated ones. Should an overlay fail to draw on a frame, the media log now says so (
[RetainedYuv] Cursor layer draw failed,[CursorRenderer] No render target view) and the encoder summary counts it (layerFailures=). -
A desktop screenshot on an HDR desktop no longer freezes CaptureEngine: on an HDR desktop, a screenshot without a game captures the desktop through Windows Graphics Capture. Before the first one, CaptureEngine asked Windows whether it may hide the yellow capture border and waited for the answer on the thread that also runs the hotkeys. When Windows did not answer at once, as on the affected system, it handed the answer back to that same thread, which was blocked waiting for it: the screenshot never finished, no hotkey worked afterwards and Exit in the tray menu no longer closed CaptureEngine. SDR desktop screenshots and recordings never waited there. The question is now asked once in the background and nothing waits for it. The log names the answer (
[WGC] Borderless access answered: ...) and when CaptureEngine is asked to close ([Runtime] Shutdown requested). -
A deleted config.ini comes back when CaptureEngine starts, with the elevation service on: CaptureEngine runs without administrator rights and cannot create files in its Program Files folder, so a deleted
config.inistayed missing until setup ran again. When the elevation service is on (the default after setup), CaptureEngine now asks it to recreate the file from the default settings at startup; it never replaces an existing file, writes only into its own installation folder and gives the file the usual rights so you can edit it without administrator rights. The log names the outcome ([Settings] config.ini was missing; the elevation service restored it, or the service's answer in thecould not be createdwarning). Needs the elevation service from this version; an older one is left alone. -
Hotkeys, recording and screenshots work without a config.ini: when
config.iniwas missing from an installation under Program Files, CaptureEngine (running without administrator rights) cannot create a new ...
Stable release 0.1.7156
v0.1.7156
Stable release 0.1.7156 built and fully verified from ff04ae0.
Highlights & Changes
New
-
The inject overlay works with Intel XeSS frame generation (XeFG), in games that ship it and through OptiScaler: XeSS frame generation presents every displayed frame itself, the generated ones from a thread of its own, on a swapchain and a GPU queue of its own, so CaptureEngine used to draw on none or only some of them. CaptureEngine now recognizes the swapchain XeSS frame generation creates, also when it takes over the game's own swapchain, and draws the overlay once on every frame it presents, generated or not, on XeSS frame generation's own queue, without copies and without waiting for the GPU. The overlay shows "XeFG 2x" to "XeFG 4x" while generation is on, from the frames actually presented, and the frame rates show what reaches the screen and what the game renders. Inject-capture recordings contain every frame XeSS frame generation presents, each with its own presentation time, with or without the overlay. Turning generation on and off, changing the factor, resizing the window and leaving XeSS frame generation for the game's own swapchain and back keep the overlay on screen throughout. The hook log names the swapchain and queue XeSS frame generation presents with (
[FG PRESENTER],[RUNTIME OUTPUT]) and every call that changes its state (XeFG: ...). -
The FPS limiter paces the game's frames under XeSS frame generation, not the generated output: CaptureEngine's frame cap now holds the game's own frame on its thread, right before it goes to XeSS frame generation, and lets every frame XeSS frame generation presents pass, the way it already handles FSR frame generation: a 120 fps cap with XeFG 2x renders 60 frames and shows 120, spaced by XeSS frame generation itself instead of a second limiter behind it. A frame cap the game sets in Intel's latency reduction (XeLL) runs alongside: whichever cap is lower holds the frames, and the hook log names both and the one that holds (
XeLL: frame caps in series). XeLL's per-frame markers also give the PC latency estimate the moment each frame started, as NVIDIA's markers do in DLSS games.
Improved
-
Crash logs say whether a stack overflow runs through CaptureEngine: when a game dies of a stack overflow,
crash.lognow carries one line that walks the crashed thread's stack: how many frames it holds, the function calls that repeat at the crash, how many of the frames belong to CaptureEngine, and where the thread started (StackOverflow attribution: ... CE frames=...). A startup crash of The Talos Principle Reawakened with OptiScaler and ReShade could previously be told apart from a CaptureEngine fault only with a debugger: 75,000 nested calls of OptiScaler's own hook, none of them CaptureEngine's. -
DirectX 12 hooks coexist with native API input wrappers: body interception can preserve the two-argument FidelityFX API across a foreign entry detour, including its scratch-register prologue, while keeping live argument registers intact. Unloaded body-hook registrations can be retired without touching an address that another image may already have reused.
Fixed
-
The Steam overlay works again in DLSS frame generation games when ReShade or OptiScaler is loaded too (The Talos Principle Reawakened): with two or more overlay-type tools loaded, CaptureEngine handed Streamline's frame generation swapchain back wrapped in an object of its own, even though its hook below the Steam overlay already saw every frame of that swapchain. The Steam overlay hooks the swapchain it is given, found CaptureEngine's code instead of Windows' and could not hook it, so it never drew anything. CaptureEngine now returns the swapchain as created whenever its hook below the other overlays covers it, and keeps its own wrapper only where it is CaptureEngine's sole view of the frames. The hook log names the choice for every Streamline swapchain (
Streamline runtime swapchain ... returned as created (view=real-below-foreign-chain ...)). -
The Steam overlay keeps its HDR color-space hook when the game starts many threads at once: CaptureEngine watches the game's HDR color-space changes from inside Windows' function so that the Steam overlay can hook its start. That hook was tried only once and, when it met a thread being created at that moment, CaptureEngine took the function's start instead, where the Steam overlay cannot follow it. It is now retried like CaptureEngine's other hooks below the Steam overlay (
DXGI: SetColorSpace1 body hook ... installed on attempt N). The back-buffer reference diagnostics retry their hook the same way. -
Ending FSR frame generation behind OptiScaler's FFX inputs no longer reads a wrong security cookie: when CaptureEngine observes AMD's
ffxDestroyContextbelow another program's detour, it replays the start of AMD's function from a copy of its own. That start loads a security cookie relative to the code's address, and the copy loaded it from the wrong place, which could crash the game or fail AMD's stack check when frame generation was turned off or the game exited. The copy now addresses the real cookie; the hook log shows the correction (DeepHook: Fixed prolog RIP-relative). -
Switching from DLSS frame generation to FSR frame generation through OptiScaler keeps FSR FG and its overlay: when OptiScaler first passed the game's DLSS frame generation requests on to a running DLSS FG and the game then switched to OptiScaler's FSR frame generation, the game's continuing DLSS requests in the first seconds still counted as DLSS FG, because Streamline had presented the frames shortly before. CaptureEngine took down its FSR overlay route and never showed FSR FG again. The swapchain FSR frame generation creates now ends that evidence at once (
[FG PRESENTER] ... Streamline proves itself again with its next present). -
DLSS frame generation switched on before a game's first frame shows as DLSS FG through OptiScaler's wrapper: a game that turns DLSS frame generation on at startup, before it renders anything, had its request held because Streamline had not presented a frame yet to prove it real, and CaptureEngine never applied it afterwards: DLSS FG ran while the overlay said FG off. The request is now applied as soon as Streamline presents, and CaptureEngine's DLSS FG state follows whenever Streamline starts or stops presenting (
Streamline Hook: Streamline FG signal is no longer a front). -
XeSS frame generation stays observed when the game unloads and reloads Intel's DLLs, and a second copy cannot break it: Windows maps a reloaded
libxess_fg.dllorlibxell.dllat its old address without CaptureEngine's hooks, and CaptureEngine's record of the unloaded copy refused to hook it again, so XeSS frame generation went unseen: no overlay status, no frame pacing at the game's frame. The records of an unloaded copy are now forgotten before the next one is hooked (XeFG: ... mapped after an unload). A second copy loaded from another folder while the first is still loaded is left alone (second image ... left unobserved): hooking it had pointed the first copy's hooked functions at the second copy's code. -
FSR frame generation without a game UI layer shows the overlay on every displayed frame, smooth and sharp (OptiScaler's DLSS-to-FSR frame generation, The Talos Principle Reawakened): when a game hands AMD's frame generation no separate UI layer, as OptiScaler does with
EnableFfxInputs=true, CaptureEngine drew its overlay into the rendered image before frame generation, so AMD interpolated it like part of the scene: the overlay changed only with each rendered frame (45 times a second on a 90 fps screen), the frame time graph scrolled in visible steps, and generated frames showed it warped by the scene's motion, which can make the whole picture look less smooth. CaptureEngine now hands the overlay to its final-output route as soon as that route has proven itself on AMD's presenter thread, and draws it on every displayed frame after AMD composed it, generated ones included; until then, and if that proof is lost, the rendered image keeps the overlay so it never disappears. The handover waits until AMD presents from its own thread: at frame generation start AMD presents a few frames from the game's thread first, and handing over earlier cost the overlay on the next frame (7 frames without it in the first seconds of a test run). The game's own render thread no longer submits overlay GPU work in that mode either. The hook log shows the handover (FFX proxy overlay route transition no-ui-resource-backbuffer -> no-ui-resource-topmost,final-batch overlay ownership GRANTED (no UI resource: ...)). -
OptiScaler DLSS-G input calls keep the active FSR overlay visible: repeated DLSS-G options and Reflex activation no longer trigger FSR overlay teardown or repeatedly start DLSS UI rendering when another runtime is actually generating the frames.
-
OptiScaler DLSS-to-FSR frame generation works with default FFX inputs: fixed the missing inject overlay with
EnableFfxInputs=true, as reported in The Talos Principle Reawakened. CaptureEngine now observes native FidelityFX output calls below existing input detours, including calls through saved originals, while preserving those detours and their ability to detach. The existing FSR composition and GPU queue paths stay in use. -
FSR frame generation can resize with the final-output overlay active: the resizing swapchain's completed overlay command lists release their old backbuffers before
ResizeBuffers, preventing DXGI from rejecting the resize because those buffers remain referenced. -
Frame generation that another tool ships in its own folder is recognized as frame generation (OptiScaler): OptiScaler keeps Intel's XeSS frame generation (
libxess_fg.dll, `libxell.dl...
Stable release 0.1.7155
v0.1.7155
Stable release 0.1.7155 built and fully verified from 78661a2.
Highlights & Changes
New
-
Recordings interrupted by a crash are repaired automatically: when capture or encoding crashed, or CaptureEngine (or another program running its engine) ended unexpectedly, the half-written recording used to stay behind as an unplayable or unseekable
capture_stage_*file, and an audio-only recording looked finished but had no duration. CaptureEngine now repairs it right after a helper crash, or at its next start, intocapture_recovered_*.mkv(or.mka) with an index and duration, every audio track and the video ending at the same instant, and shows a tray notification. MKV recordings now close their blocks every second, so a crash loses at most about one second instead of up to five. Files that cannot be read are kept ascapture_incomplete_*instead of being deleted. -
Crash-safe MP4/MOV recordings on request (
[Output] fragmented_mp4=true): mp4 and mov recordings are written in fragments of about a second, so an interrupted recording stays playable and is repaired like an MKV. Off by default: a fragmented file cannot state its exact end, so its audio may end up to one audio frame (about 20 ms) after the video; MKV stays the container with exact track lengths. -
Other programs can drive CaptureEngine (
cengine.dlland an SDK folder): CaptureEngine's engine (the helper processes, recording, hotkeys, the desktop overlay, screenshots, game launching, settings and the sensor driver, elevation service and autostart setup) now runs insidecengine.dllbehind a documented C API, and the CaptureEngine app is one program that uses it. The installation contains ansdkfolder with the header files, import libraries for clang/MinGW and MSVC, the export list, a CMake package (find_package(cengine)), an example program and a developer guide with recipes for every task. A program placed in the CaptureEngine folder can start the engine, record, take screenshots, change settings and receive events such as a finished recording with its file path. Only one engine runs per Windows session: while the CaptureEngine app runs, another program is told the engine is busy. -
Programs that use
cengine.dllcan host CaptureEngine's helper processes in their own executable (CE_FEATURE_SELF_ROLE_HOST): a program that wants game injection, capture and encoding in separate processes (so a crash there does not end the program) used to getcaptureengine.exeprocesses for them. With the new feature bit, those helpers, the per-application audio worker, the hardware sensors and administrator setup steps run as further instances of the program's own executable, which hands them to the engine by callingce_role_host_main()first thing inmain; the engine then starts even withoutcaptureengine.exe. The SDK's example program shows it (--self-role-host), and each helper's log names the executable it ran from ([RoleHost] helper executable=...). -
Recording picks the best video encoder of your GPU automatically (
[Video] encoder=auto, the new default): recordings usedav1_nvencunless you changed it, so on AMD or Intel graphics, and on NVIDIA GPUs without an AV1 encoder, recording failed until the right encoder was configured by hand. CaptureEngine now finds the GPU that will encode (the game's GPU with inject capture, the captured monitor's GPU for screen capture, or the first GPU that can encode when that one cannot) and test-opens its encoders there once, best first: AV1, then HEVC, then H.264, through the vendor's own encoder (NVENC, AMF, Quick Sync) and then Windows Media Foundation. Withbit_depth=autoor10it prefers an encoder that also records 10-bit and HDR, the configured container must support the codec, and if the chosen encoder still fails to open at the recording's real size or settings, the next one is used for that same recording. The result is remembered for the GPU, so later recordings start without testing again (about 0.2 s once, measured on an RTX 5070, which picks AV1).av1_auto,hevc_autoandh264_autochoose only within that codec, and live streaming withautouses the GPU's best H.264 encoder. A named encoder such ashevc_amfis used exactly as before and never switched. The media log shows each test ([EncoderAuto] Probe ...) and one line per decision with the GPU, the choice and every candidate tried ([EncoderAuto] request=auto ...). Existingconfig.inifiles keep the encoder they name.
Improved
-
The injected DLLs are 5.6 MB smaller and leave 32-bit games more address space:
capture_hook_x86.dllandcapture_hook_x64.dlleach carried 5.6 MB of room for the pacing diagnostics trace inside the file, so every game CaptureEngine injected into had to map it, although only a debug-logging session ever fills that trace. The trace now takes its memory only when debug logging starts it, and the hook log says so ([PacingTrace] armed: ... (5632 KiB, allocated)). In a 32-bit game, where the game and everything loaded into it share at most 4 GB, the hook now occupies about 6 MB less. -
Less memory for every thread of an injected game: CaptureEngine's frame statistics kept a 32 KB work buffer that Windows sets up for every thread of the game, not only the one that renders, in DirectX games through the hook DLLs and in Vulkan games through the overlay layer; a game with 200 threads paid more than 6 MB for it. The overlay's 1% and 0.1% lows are now worked out with about 330 bytes on the rendering thread and give the same values. The per-thread data drops from about 40 KB to 7-9 KB in the hook DLLs and to under 1 KB in the Vulkan layer.
-
Every CaptureEngine program and DLL is 0.25 to 0.6 MB smaller: each one carried debug information for the parts of the C runtime it contains, which the debuggers CaptureEngine's crash analysis uses never read (CaptureEngine's own debug information is in the
.pdbfiles next to them) but which every process loading the file had to map, games included. It is left out now, 4.3 MB less across the ten files; the small Vulkan gate layer and the elevation service are less than half their previous size, and crash dumps resolve exactly as before. The build now also rejects a CaptureEngine file that carries such data again, holds more than 256 KB of preset writable data, or sets aside more than 16 KB for every thread of the process that loads it. -
The hook DLLs store each overlay and sharpening shader once: the Direct3D 11 and Direct3D 12 code each had their own copy of the same compiled shaders; one copy is shared now, 55 KB less per hook DLL.
-
Forced anisotropic filtering in Direct3D 11 games no longer forgets shaders it has room for: CaptureEngine remembers, per game thread, which shaders it has already examined, so switching back to one costs nothing. Depending on where the graphics driver happened to place them in memory, a few shaders could push each other out even with the memory a quarter full, and every switch to them repeated the slower lookup. Each shader now has two possible places, and one is only given up when both are full.
-
CPU clocks in the overlay without the sensor driver, and NVIDIA GPU values without LibreHardwareMonitor (
[HardwareSensors] backend): the CPU clock row stayed empty unless the PawnIO driver was installed and CaptureEngine ran with administrator rights through the elevation service, and every GPU temperature, power or clock needed LibreHardwareMonitor. CaptureEngine now reads the CPU's average clock (the performance cores on hybrid CPUs) and its fastest core from Windows itself, and the temperature, power and clocks of an NVIDIA GPU straight from the driver when it is the PC's only graphics card; LibreHardwareMonitor is started only for what is left (CPU temperature and power, fan, voltage, other GPUs) and not at all when nothing is.backend=nativenever starts it,backend=lhmkeeps the previous behavior, and the sensor log names the source of every value ([Sensors] sources (backend=auto): ...). -
Per-application audio capture shuts Windows' audio client down properly: the short-lived worker that records one application's audio used to leave Windows' capture client running until the worker exited, a precaution against a crash in Windows' audio mixer seen in June. A new test that tears thousands of captures down in every way CaptureEngine ever did found no crash on current Windows, so the worker now stops and releases each client (
[ProcessLoopback] client stopped and releasedin the log). The worker stays a separate process, so a crash on another system would still not affect the recording of anything else. -
Programs that use
cengine.dllcan keep their own FFmpeg: CaptureEngine's FFmpeg libraries now have names of their own (avcodec-ce-63.dlland so on) and carry their helper libraries inside (Opus, AV1 encoders, Intel's video runtime, the C++ runtime) instead of shipping them as separate DLLs. A program that runs the engine in its own process and already loaded its own FFmpeg, libc++ or libopus could otherwise make Windows hand CaptureEngine that program's copy, with crashes or broken recordings as the result. Theffmpegfolder now holds just the five FFmpeg DLLs. -
Crash reports and dumps say which part of CaptureEngine crashed: every thread CaptureEngine starts now carries a name (for example
CE media r0003 encoder,CE app audio capture,CE runtime engine), which debuggers, Process Explorer and performance traces show, andcrash.lognames the faulting thread (Faulting thread tid=... name='...'). That matters most when recording runs inside another program or withisolated_helpers=off, where every part shares one process. When the last in-process recording is gone, the log reports what it left behind (`[MediaTeardown] residue handles=+0...
Stable release 0.1.7154
v0.1.7154
Stable release 0.1.7154 built and fully verified from 02258a7.
Highlights & Changes
Improved
-
Direct3D 9 capture bottlenecks easier to diagnose: the media log now reports captures skipped because every shared texture was still in use, distinguishing textures held by the encoder from capture work still pending on the game's GPU. These counters were previously missing for GPU-only Direct3D 9 capture.
-
Less background work while no game runs: with the elevation service, watching for game starts no longer switches on system-wide display timing tracing. Presents, GPU submissions and input reads of every application on the PC are traced only while the display-timing overlay actually needs them; game-start detection stays just as fast. Older installed services keep working with the previous behavior.
-
Faster inject capture for classic Direct3D 9 games: games that use plain Direct3D 9 (not Direct3D 9Ex) could previously only be captured through a slow copy into system memory and back, which cost a lot of performance at high resolutions and frame rates. CaptureEngine can now hand their frames to the encoder entirely on the GPU, as it already did for Direct3D 9Ex games. It first checks that this works on the installed Windows version and for that game, and otherwise keeps the previous capture path. Games that create their Direct3D 9 device for multithreaded use are included too: while switching sharing on for a single texture, CaptureEngine holds Direct3D 9's own device lock so the game's other threads wait, and it keeps the previous capture path whenever it cannot verify that lock on the installed Windows version.
-
Capture cost visible for GPU-only Direct3D 9 capture: the performance log now records how much time capturing takes per frame when a Direct3D 9 game is captured entirely on the GPU, including games whose overlay drawing moves capture into a later drawing step. Previously these frames showed no capture time at all. The hook log also summarizes the average cost every ten seconds while recording.
-
Faster Vulkan startup for other applications: while CaptureEngine runs, Vulkan programs that are not CaptureEngine targets (browsers, chat clients, other games) no longer take a snapshot of every process on the machine when they initialize Vulkan. CaptureEngine's Vulkan layer now reads only the program's own parent and makes the same decision as before.
-
Stable release verification: pre-release static analysis, exception safety and explicit pointer conversions now satisfy the required release lint ratchet.
Fixed
-
Inject recording restart after a GPU stall: restarting after a recording's final GPU reads timed out could let a shared texture be reused while the previous recording was still reading it, corrupting frame contents. Restart now preserves those reservations and continues from the metadata ingest cursor, discarding only unread old frames without adding a wait to recording startup.
-
Recorded video jumped between older and newer frames in very high frame rate games: with inject capture, the encoder's GPU had not always finished reading a frame when CaptureEngine handed that frame's shared texture back to the game for the next capture. When a game renders far faster than the recording frame rate (for example a classic Direct3D 9 game at 400+ FPS), it reuses such a texture right away, so the encoded frame sometimes already showed a newer image and motion briefly stepped forward and back. Each texture now stays reserved until the encoder's GPU work on it has actually completed; release is event-driven and adds no wait to the game or the encoder. The media log reports how many textures waited and for how long.
-
More reliable crash-diagnostics verification: full checks no longer fail when Windows is still finishing deletion of the previous test's temporary directory. Every test setup uses a separate directory, with a regression that reproduces Windows' pending-deletion behavior without timing delays.
-
Recording never started for some classic Direct3D 9 games: when CaptureEngine captured such a game through its GDI fallback, it discarded nearly every frame it had just accepted, so the recording waited for its first frame until it was stopped. Each frame is now accepted or skipped once.
-
ngx_ota=offstopped NVIDIA DLSS updates for every game: CaptureEngine terminated any NVIDIA NGX updater on the PC, including ones started by games it was not configured for. It now only stops an updater launched by one of its own target games.
Release Assets
captureengine-0.1.7154.7z: core product binaries, PDBs, FFmpeg closure, and default configurationcaptureengine-setup-0.1.7154.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)testapps-0.1.7154.7z: standalone graphics & frame generation test executables and diagnostic toolsffmpeg-corresponding-source-0.1.7154.7z: complete LGPL corresponding source archivelatest_manifest.json/latest_summary.txt: full build and verification evidence
Distribution & Licensing
- FFmpeg is distributed as shared libraries under LGPL-2.1-or-later; see bundled notices.
- Binaries are verified with PE hardening checks (ASLR, DEP/NX, CFG) and are not Authenticode-signed.
Stable release 0.1.7153
v0.1.7153
Stable release 0.1.7153 built and fully verified from 2a43d53.
Highlights & Changes
Improved
-
Streamline and injection diagnostics: Streamline feature lookups CaptureEngine runs before a game's plugins have loaded no longer log that "the Streamline runtime is unloading". Each skipped lookup now states its actual reason, and the routine "not loaded yet" case is no longer logged. The inject log no longer labels a game "non-D3D12" when an early injection ran before Windows had finished listing the game's modules; it now says the graphics API was not probed.
-
DLSS override diagnostics: the hook log now states once per DLSS feature whether the DLL configured in
dlss_sr_dll_path,dlss_fg_dll_pathordlss_rr_dll_pathis the one that actually loaded, and names the copy that won otherwise. This includes NVIDIA's own OTA or NVIDIA app override copies, which NGX loads from its model repository and which bypass the configured file. -
DirectX 12 inject capture synchronization: capture copies embedded in frame-generation output batches now retain their resources until GPU completion and acknowledge the shared capture fence without an extra signal on the runtime presentation queue.
-
Sensor polling diagnostics: logs now distinguish delayed polls from unavailable sensors, report the backend and sample age, and record readability changes and recovery with repeat counters instead of logging every value update.
-
Stable release validation: pre-release static analysis, exception safety and explicit pointer conversions now satisfy the required release lint ratchet.
Fixed
-
Early injection load failures: queuing a startup APC no longer counts as a completed hook injection. CaptureEngine now checks the actual DLL load result and Windows error, clears failed pending injections so later attempts are possible, and safely releases the temporary load storage after acknowledgement.
-
Injection after elevation-service interruptions: stopping the service no longer leaves new games undiscovered for the rest of the session. CaptureEngine switches to native process monitoring and rescans running processes. Older services and sessions whose process-start provider could not be enabled now use the existing discovery fallback instead of silently receiving no process events.
-
streamline_dll_pathdeclined at the last step even when CaptureEngine was in time: once the configuredsl.interposer.dllloaded, CaptureEngine's own Streamline hooks rewrote four of the game's Streamline imports, and the takeover then refused to switch over because it no longer recognized those slots. The game kept its own interposer even though the configured copy had already loaded. Those imports are now left to the takeover while it owns the runtime, and Streamline calls are still observed through the configured interposer's own functions. -
streamline_dll_pathintermittently ignored for games that link the interposer directly (e.g. The Witcher 3): whether the configuredsl.interposer.dllreplaced the game's own copy depended on a race between CaptureEngine's hook and the game's first Streamline call, so many launches kept the game's interposer with only the core and plugins from the configured folder. CaptureEngine now receives real-time process-creation events directly from the elevation service's ETW session (Microsoft-Windows-Kernel-Process) with 1 ms buffer flushing, eliminating discovery latency from WMI and polling loops. Additionally, early loader initialization (ERROR_PARTIAL_COPY) is now treated as immediately ready for injection without retry delays, allowing the hook to consistently load on the game's startup thread via APC before any game code runs. The inject log records the startup phase, the route taken and the process age for each injection. -
Streamline DLL overrides with
ngx_ota=off: fixed a regression where CaptureEngine's OTA-preference hook could make the static interposer takeover reject its own import, leaving the game's DLL in use instead of the configuredstreamline_dll_path. OTA preferences now apply through the takeover's selected runtime while foreign import hooks remain protected. Rollback logs also distinguish an enteredslInitgate from a missed initialization call. -
Screen-grab A/V alignment with multiple applications: flip-queue compensation now uses display timing only from the window being recorded or its proven renderer. Timing from another hooked application, an unknown desktop target or a source reset no longer shifts the recording's audio anchor.
-
Native FSR frame generation with gamma or sharpening: post-processing embedded in AMD's final output batch now retires its GPU resources through an inline completion marker, avoiding extra signals on the runtime presentation queue while keeping correction and overlay inclusion intact.
-
Streamline overrides alongside other import hooks: a foreign import hook that retains the game's interposer now causes takeover to be declined, including when installed after takeover was armed. Direct imports migrate together before the configured runtime can initialize, preventing a recording or game from running on two interposers.
-
Static Streamline interposer override for D3D11 and Vulkan games: when
streamline_dll_pathreplaces a game's ownsl.interposer.dll, every function the game imports from it now moves to the configured copy, including D3D11 device creation and the Vulkan functions, instead of only the Streamline, DXGI and D3D12 entry points. If that is impossible (the configured copy lacks a function the game imports, for example an older build of the same Streamline generation, or the game imports by ordinal), the override is declined with a log entry and the game keeps its own interposer instead of running partly on each. -
DLSS and Streamline overrides in folders with non-ASCII names:
dlss_sr_dll_path,dlss_fg_dll_path,dlss_rr_dll_pathandstreamline_dll_pathnow work when the configured folder contains characters such as umlauts or CJK text. The existence check and the actual load previously read the path in different encodings, so the configured DLL failed to load or CaptureEngine's own Streamline core was treated as foreign and the Streamline override was switched off. Very long module paths no longer prevent the staticsl.interposer.dlloverride either. -
Inject recordings freezing after DLSS FG switches to FSR FG: capture now follows native FSR's final output batches, including generated frames, and continues through FG suspension and resume. Overlay inclusion and post-processing are preserved; outgoing frames keep their proven copy queue while the runtime drains.
-
Hardware sensor readings disappearing from the overlay: delayed polling now keeps the last validated temperature, power, fan and clock readings while the sensor backend remains active. Explicit unreadable samples, bridge failures and disconnects still clear unavailable values; delayed samples retain their original acquisition time.
Release Assets
captureengine-0.1.7153.7z: core product binaries, PDBs, FFmpeg closure, and default configurationcaptureengine-setup-0.1.7153.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)testapps-0.1.7153.7z: standalone graphics & frame generation test executables and diagnostic toolsffmpeg-corresponding-source-0.1.7153.7z: complete LGPL corresponding source archivelatest_manifest.json/latest_summary.txt: full build and verification evidence
Distribution & Licensing
- FFmpeg is distributed as shared libraries under LGPL-2.1-or-later; see bundled notices.
- Binaries are verified with PE hardening checks (ASLR, DEP/NX, CFG) and are not Authenticode-signed.