Repository navigation
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-present pacing is kept to the application boundary.
-
Unified DLSS FG factor and state publication: DLSS frame generation state and multiplier updates to shared memory are now managed coherently by
FGCompatibilityrather than unsynchronized call sites across game and presenter threads, andGetStateoption queries no longer roll back an active viewport's higher explicit generation factor. -
Smooth Motion evidence selection and rate resets: the interposer status now uses submission evidence only when an attached application submission source is active, avoids double-counting application presents when direct presents arrive, resets measured rates and multiplier on deactivation, and expires obsolete worker-run generation evidence when moving to single-thread presentation.
-
In-game screenshots with FSR frame generation across graphics device views: no-callback FSR screenshots with overlay inclusion now recognize different interface views of the same graphics device during overlay rendering and renderer caching, preventing failed captures and repeated GPU retry work.
-
Native AAC state isolation across legality retries: the encoder now snapshots its persistent rate-control and psychoacoustic history before the per-frame encode loop and rewinds that history when retrying an oversized frame at reduced lambda, preventing temporary retry passes from corrupting long-term slew and hysteresis state.
-
Resilient recording output spool handle safety and range validation: the output spool writer handle is now preserved across failed live reconnect probes without closing and reopening, eliminating write errors during temporary network share stalls. Replay validates signed file offset ranges to prevent integer overflow and distinguishes unfinalized crash tails from corrupt finalized data.
-
Demand-driven encoder texture export and VRAM accounting: media now allocates the KMT export texture pool only when requested by a zero-copy producer (such as DXVK) rather than eagerly on all non-screengrab recordings, and D3D9 shared-memory capture uses its own encoder upload surface. Exported textures and opened alias views are explicitly accounted and deduplicated in GPU memory diagnostics, and repeated export requests cannot overwrite an adopted producer timeline fence.
-
Vulkan zero-copy capture transport robustness: same-geometry swapchain recreations now clean up superseded cache entries to prevent leaks and mismatched relay bindings. The layer activates direct encoder texture mode only after creating and publishing its timeline fence, validates adapter LUID consistency on KMT offers, and withdraws broken offers on import failure so fallback capture can continue.
-
Shared-memory capture drain after recording stop: detaching from the shared recording state now synchronizes across media workers under a publication barrier before stop acknowledgement, preventing late worker updates from landing on the live layout. Detached layouts preserve frame geometry and process identification, ensuring in-flight shared-memory frames drain and upload with valid dimensions.
-
Strict AAC packet sizes: the encoder counts the end marker and byte padding against the per-frame bitrate limit. If a frame needs the silence fallback, the packet uses only the required AAC syntax and preserves the original sample count and timestamp.
-
Zero-copy capture after a DXVK resize: the Vulkan layer requests replacement textures once the outgoing swapchain's reads and copies finish. It also rejects an offer for the old size if allocation finishes after the resize. Media reuses the export only when its dimensions, format and adapter match, and opening a slot on the encoder device no longer holds up export replacement.
-
Zero-copy capture retries a failed texture import (DXVK Vulkan games): a single failed import of the encoder's textures used to leave the game on the slower copy route until its next resize, and the retry the layer scheduled could never fire. The layer now withdraws the offer, media republishes it, and the layer looks again about a second later. After four failures in a row it keeps the copy route and stops asking, so a permanent import error cannot republish and log forever. Every new swapchain or recording starts with a fresh budget.
-
Recording stop blocked by an active codec call: detaching the finishing recording now snapshots and switches its shared-state route under a short publication barrier, independently of codec locks. Late encoder updates stay private and cannot overwrite the next recording's state. Capture threads also read encoder timings without the codec lock, so a stalled codec call no longer keeps an injected-capture recording from acknowledging its stop. Creating and releasing the textures that Vulkan/DXVK games render into for zero-copy capture no longer waits for the encoder either: they now have their own device and locks, and the encoder reads them without a copy. Diagnostic logs retain exceptional AAC repair events.
-
AAC recordings hanging with high CPU and never finishing: repaired the native AAC allocator's final frame-budget enforcement across CBR, ABR, and VBR. An oversized frame is first quantized more coarsely within its existing search, then across the full quantization range; only if even the coarsest legal quantization cannot fit are the highest remaining bands removed. Frames that already fit are encoded exactly as before, and successful recovery resets temporary retry pressure for the next frame. If a frame still cannot be made legal, the encoder writes that one frame as silence instead of failing or spinning, so every track keeps its exact length and sync.
-
Accented and non-ASCII recording profile names: profile labels are now converted from the Windows section-name code page to UTF-8 before building recording filenames, preventing replacement characters in names such as
Pokémonon non-UTF-8 Windows locales. -
Recordings selected by window title: starting a WGC or desktop-duplication recording through a window-only application profile no longer reads a destroyed profile after configuration refresh, and its name now reaches both video and audio-only output filenames.
-
Session log diagnostics: the compact log digest no longer hides nonzero hexadecimal failure counters or device-removal codes as harmless zero values, so these failures remain visible in its problem summary.
-
DirectX 12 screenshot device checks: a stale probe value could make two different devices appear identical and allow a screenshot copy against the wrong device. The check now requires both interfaces to observe a changing probe before accepting them as one device.
-
DLSS frame generation factor under concurrent polling: fixed a remaining race where a game poll could restore an older factor after the runtime evaluated a new one, briefly changing the overlay status and base frame rate. Requests and runtime observations now update one atomic state.
-
Configured DLSS frame generation DLL ignored alongside OptiScaler:
dlss_fg_dll_pathhad no effect in that setup, and the driver's older copy ran instead (The Witcher 3: 310.9.0 instead of the configured 310.9.16), because a hook answering a module lookup looked like that DLL already being loaded. The configured DLL now loads, and the log no longer reports overrides as not in effect when they are. -
In-game screenshots with other overlays and frame generation (DirectX 12): a game running with several injected tools could fail its screenshot and silently fall back to capturing the desktop, because CaptureEngine treated two interfaces of one graphics device as two devices (The Witcher 3 with Streamline, ReShade, OptiScaler and the Steam overlay). Screenshots now come from the game's own frame in that setup too.
-
Flickering DLSS frame generation factor and base frame rate: with a driver-chosen factor (
dlss_fg_mode=dynamic) the overlay status and base frame rate could flip between two values many times a second, such as 2x and 4x, because what the game asked for kept overwriting what DLSS frame generation actually ran (The Witcher 3). The status now follows what the runtime runs. -
Repeated frames in DLSS frame generation recordings: inject recordings repeated up to a quarter of their frames whenever the frame generation factor changed or flickered, because capture timing assumed each change altered the output rate. Recordings now keep an even frame cadence through factor changes, on DirectX 12 and Vulkan.
-
NVIDIA Smooth Motion status after frame-generation switches: clearing detection state no longer permanently disables the fallback needed when the driver presents from one thread, allowing the overlay to detect Smooth Motion again after a switch.
-
NVIDIA Smooth Motion status: the overlay lost
NVIDIA SM 2xafter a few flickering seconds, or never showed it at low frame rates, while the driver kept generating frames. Seen in Trine 5 (DX11). CaptureEngine now tells the game's frames from generated ones by how the driver presents them, so the status and factor hold at any refresh rate, frame rate or GPU load, with or without vsync. DX12 keeps its direct view and gains this where that view is missing; Vulkan uses it too. -
NVIDIA Smooth Motion frame rates: the output rate now shows what reaches the screen, so driver vsync no longer reads as double the panel's rate, and the base rate is the game's measured rate. On DirectX 11 the frame rate and frame-time graph are no longer halved while display timing is unavailable.
-
FPS limiter with NVIDIA Smooth Motion: under a cap the frame-time graph jumped instead of running flat, and the frame rate could overshoot the cap, because the limiter held only one of the two frames the driver shows per game frame. Seen in Trine 5 (DX11). Each shown frame now gets its own even slot; where CaptureEngine can reach the game's own Present (normally DX12), it paces the game instead and the driver spaces the frames. A game below the cap keeps the driver's own pacing untouched.
-
CaptureEngine in NVIDIA Smooth Motion's own pipeline (DX11): the driver's interpolation device no longer runs through CaptureEngine's wrappers or forced anisotropic filtering, which also stopped a hook retry on every frame that made up 87% of the debug log.
-
B-frames with AMD AMF encoders: setting
[Video] b_frames(> 0) now properly enables B-frames on H.264 and AV1 AMF hardware encoders (h264_amf,av1_amf) without requiring explicitcustom_options="bf=N". CaptureEngine now passes bothbfandmax_b_framesoptions to the encoder; previously onlymax_b_frameswas generated, which FFmpeg's AMF wrapper assigned tomax_consecutive_b_frameswhile leavingB_PIC_PATTERNand DTS delay unset. -
Vulkan startup with late-loaded DXGI: factory-hook retries now respect an already loaded CaptureEngine Vulkan layer before renderer detection finishes, preventing D3D hooks from modifying the Vulkan driver's private presentation objects.
-
Game startup with nested graphics DLL loads: late DXGI hook discovery now waits until a DLL's initialization callback has returned before creating factories or taking the installer lock, avoiding a loader-lock deadlock while retaining immediate discovery after ordinary loads.
-
Overlay text cut off in small windows or at high display scale: Hero, List and Meters now wrap oversized sections to the available viewport width, keeping the configured font size, hardware readings, recording warnings, graph and meter bars visible.
-
Overlay movement when hardware readings drop out: GPU memory clocks, voltage and fan readings, CPU peak clocks, and clock rows now keep their slots and show
--until readings return. Missing samples no longer collapse Hero rows or change Strip wrapping. -
Overlay in games with late-loaded system DXGI, such as Mirror's Edge on DXUP: the in-game overlay now appears when DXUP's D3D9 backend loads Windows' system
dxgi.dlldynamically after HookThread startup, including when DXUP's owndxgi.dllis also present in the game directory. Previously,InstallGlobalVTableHooks()was only invoked once at thread initialization and fromDX12Hook::Init(), which translation layer checks defer until device evidence appears. Late loads ofdxgi.dllare now intercepted atNotifyHookModuleLoaded()and retried fromCheckAndInstallHooks(), installing global factory vtable hooks before the game creates its swapchain and preserving Steam overlay coexistence. -
DXUP native D3D11 fallback label: the overlay no longer claims a DirectX 12 backend just because DXUP's
d3d11.dllremains loaded after falling back to Windows' DirectX 11. Native D3D12 output still reports the full DXUP translation chain. -
DXVK D3D8 overlay label: DirectX 8 games now show
DX8 -> Vk (DXVK)when DXVK's D3D9 backend is also loaded, instead of being mislabeled as DirectX 9. -
Display timing and background-window recovery on busy systems: trace-session cleanup no longer reads past its session array when Windows reports more active sessions than fit. Cleanup also preserves another CaptureEngine process's sessions when its owner cannot be queried, reclaiming them only when the owner is confirmed gone.
-
DLSS FG in menus: the overlay no longer shows "DLSS FG 2x" while DLSS FG generates nothing, in menus and loading screens, and shows it again as soon as generation resumes.
-
XeFG enabled while a menu sends no frame IDs: the overlay now recognizes that no frames are being generated even when no application frame follows a generation toggle, and restores XeFG status as soon as frame IDs resume. Cadence resets and status publication are serialized between the game and presenter threads so an older window cannot overwrite a newer verdict.
-
Minimized D3D12 games that present with Present1: CaptureEngine now recognizes when such a game cannot present, on the same path Present already used, and pauses its work on the back buffer until the window returns.
-
Streamline games with the Steam overlay: the same recognition now works in these games without frame generation, and CaptureEngine also notices a lost device from their
Presentresults, with or without frame generation, including DLSS FG after a switch from FSR FG. That route now also writes the performance CSV, which had no rows for as long as DLSS FG ran after FSR FG, and no longer repeats a memory check on every frame. -
Performance CSV with XeFG: rows now show the
Presentcall, the time around it and the limiter wait, which were always 0. -
Performance CSV with DLSS FG: rows now include the overlay's cost, which they showed as 0 while it was drawn.
-
Debug logs: a slow overlay submit now logs itself, and one right after a frame generation switch or a focus change also logs what the thread was waiting in.
-
Switching to DLSS FG: the first frames after the switch now appear in the performance CSV, and CaptureEngine also notices a lost device on them, as on the frames that follow.
-
XeFG status in the overlay: after DLSS FG or FSR FG, the overlay now shows XeFG as soon as it turns on instead of showing frame generation as off for 300 frames, it no longer shows a false 4x for a moment after that, a hitch can no longer show a higher factor than the game set (such as 3x for a second instead of 2x), and it shows frame generation as off while XeFG generates nothing, as in a game menu. XeFG's own GPU queue also no longer reads as FSR FG: the overlay could show "FSR FG 2x" for one frame when XeFG started, and that status could stay on after the game left XeFG.
-
D3D12 frame classification with late overlay hooks: another overlay installing a queue hook after its DLL loaded no longer causes CaptureEngine to exclude the game's forwarded command lists. Caller ownership now uses that queue's current method entry for each submission, so direct calls on other queues cannot leave a stale classification.
-
D3D9 filtering when textures have different mip counts: binding a texture with only one visible mip level now removes forced anisotropic or mip filtering, and binding a texture with several visible levels enables it again. The texture-bind shortcut now accounts for the application's maximum mip level, preserving fast binds when the filtering decision is unchanged.
-
Recording recovery after an offline drive or network share: finalized local spool files now survive writer teardown and the start of another recording, preserving buffered recording data and the container trailer until storage returns. Explicit recording cancellation still removes its spool.
-
Recording through repeated storage disconnects: successful live spool replay now keeps its destination handle for continued writing, removing the reopen gap that could leave both output handles invalid when a share disconnected again. Failed replay retains the spool for queued writes and a later retry.
-
Mux write-queue warnings during a hung disk or network-share write: while a single output write was still blocked in the kernel for multiple seconds, the mux queue-pressure tracker only counted completed writes, reporting
writer busy in writes 0.0%, slowest write 0.0msand blaming an unscheduled writer thread instead of the stalled output target.MuxWriterActivityTrackernow folds the elapsed time of an in-flight write into each pressure window without double-counting it when the write completes. -
False "Recording failed" status when the media helper stops a recording on its own: when a live recording stopped itself cleanly after an unrecoverable output write failure, a capture color-contract change, or persistent encoder output loss, the media helper finalized and saved the committed recording and exited, while the controller still treated the recording as requested and mistook the media process's normal exit for a crash. That overwrote the "Recording saved - video degraded" notification with "Recording failed", disabled automatic recording, and respawned the media process unnecessarily. The media helper now publishes a live-stamp-scoped end notice (
mediaEndedRecording) before finalizing so the controller retires the media child cleanly and reports its finalization result. -
D3D9 CPU overhead and framerate drops in Unreal Engine 3 titles: in games like Borderlands 2 that issue tens of thousands of D3D9 state and sampler calls per frame, hook overhead previously reduced CPU framerate during inject and overlay presentation. Unused
SetTextureStageStateinterception has been removed, helper device identification and state block callbacks are now lock-free, graphics API display strings are cached per-present, and redundant transform queries during overlay rendering are eliminated. In addition, sampler state overrides now pre-parse graphics configuration, fast pass-through non-overridden states lock-free, cache texture mipmap levels to prevent redundant COM metadata queries, and short-circuit texture unbinds and rebinds that do not alter anisotropic filtering eligibility. -
D3D9 games lost CPU-bound framerate even with no texture override configured: CaptureEngine hooked
SetTexture,SetSamplerState,GetSamplerStateand state-blockApplyon every D3D9 device, calls an Unreal Engine 3 renderer makes tens of thousands of times per frame. In Borderlands 2 (CPU-bound) that cost ~15% framerate (~150 fps vs. ~175 fps with a Present-only overlay), although CaptureEngine's own Present work was only ~60 µs per frame. These per-draw hooks are now installed only while a forced anisotropic filtering, mip-mapping or LOD-bias override is configured - at device creation, or at the next Present after one is enabled - so D3D9 games without one pay nothing per draw call (Borderlands 2 gameplay: ~151 -> ~165-171 fps). Direct3D 8 and Direct3D 6/7 games follow the same rule: theirSetTextureStageState,GetTextureStageStateand state-block hooks wait for an override (at the next Present orEndScene), while the Direct3D 7 overlay's own texture tracking stays in place. -
Forced anisotropic filtering in D3D9, Direct3D 8 and Direct3D 6/7 games costs less CPU: engines re-set every sampler state for every draw, and with AF forced each of those redundant
SetSamplerStatecalls still ran CaptureEngine's full filtering policy (Borderlands 2: 133-143 fps with AF forced vs. ~151 fps without). A call that re-sets the value a sampler already has, while the forced state is already on the device, now returns immediately without the policy or a driver call; the same holds for redundantSetTextureStageStatecalls in Direct3D 8 and Direct3D 6/7 games, which also no longer compare configuration strings on every call. Binding another texture no longer asks it for its mip count and type over COM each time: CaptureEngine now also watches texture creation while an override is configured and answers from a per-device cache, which only a newly created texture at the same address can invalidate (if those hooks are ever replaced by another tool, every texture is asked again). In D3D9 these two common cases - a redundantSetSamplerState, and binding the texture a stage already holds - are now also answered without taking CaptureEngine's device lock, which every one of them took before (Borderlands 2 makes about 1.7 million such calls a second with AF forced); each sampler publishes its values while it is reconciled and is withdrawn before anything changes it. The sampler summary in the hook log now reports intercepted calls, skipped redundant calls (and how many of those needed no lock), lock-free texture re-binds, texture metadata queries and cache hits. -
The D3D9, Direct3D 8 and Direct3D 7 overlays cost less CPU per frame: all three saved and restored the game's device state with a "capture everything" state block around every overlay draw - every render state, sampler, texture stage, shader constant, transform and light, re-applied each frame, after which the driver had to revalidate the game's whole state on its next draw. The overlay now reads only the states and bindings it is about to change, leaves alone any the game already has at the overlay's value, and writes back only what it actually changed. This matters most for single-threaded Direct3D 7 games such as Gothic II, where the overlay draws on the same thread that renders the game. It deliberately does not record a smaller state block instead: Windows' Direct3D 9 replaces a device's whole function table whenever a state block is recorded, which removed CaptureEngine's forced anisotropic filtering hooks (and would remove other overlays' hooks) from the game's device - textures stayed blurry with AF forced in a development build that did this. Only a "pure" D3D9 or Direct3D 8 device, which cannot report its state, still gets the full state block. Switching back to the game's own render target also no longer resets its viewport (and, on D3D9, its scissor rectangle) after the restore, which the old order did whenever a game presented with an offscreen target bound. In D3D9 and Direct3D 8, each frame's overlay geometry is now appended behind the previous frame's in the overlay's vertex buffer, which is discarded only when full instead of every frame, and the index buffer is re-uploaded only when the overlay's text changes, not on the frames that only move the frame-time graph. On those frames only the graph's own vertices are written now; the rest of the overlay stays where the last full frame put it, and a graph line that got a few points shorter no longer re-uploads the index buffer. Text, panels and the graph line now go out in one draw call on D3D9, Direct3D 8, Direct3D 7, D3D10 and D3D11, because solid shapes sample a small white block in the overlay's font texture instead of alternating with the text and changing the bound texture each time. Every 10 seconds the hook log now reports what the D3D9 overlay's upload, state save, draw and restore cost per frame, and how long the overlay spends preparing a frame before drawing it, split by stage (display timing, text update, row layout, graph, the rest). Preparing a frame also does less: the game window's monitor is looked up only on an HDR display, which is the only place the overlay uses Windows' SDR white level, and there only when the text refreshes. The frame-time graph's two labels are formatted only when the values they show change, and the D3D9 overlay no longer asks Windows' loader for
d3d9.dllon every frame. -
Intel XeSS frame generation no longer waits for the overlay on every displayed frame: with XeFG generating, CaptureEngine blocked XeFG's presenting thread until the GPU had finished the overlay, 2.4-13 ms per displayed frame in The Talos Principle Reawakened. That wait is for frame-generation runtimes that read the frame after CaptureEngine has drawn on it. XeFG presents right after the overlay on the same queue, so its frames now use the same fence signal after
Presentas a game without frame generation. The hook log says which method is in use whenever it changes. -
The D3D12 inject costs less CPU per frame: on every
Presentand every gameExecuteCommandListswithout frame generation, CaptureEngine scanned the calling module's path for a few dozen known names, although the answer cannot change while that module stays loaded. The answers are now kept per thread until a module unloads or the list of identified overlays changes. EachPresentalso walked up to 16 stack frames to find which runtime issued it, even in games that have no frame-generation runtime to find; that walk now runs only when one is loaded, and otherwise once every 256 frames to keep the log's module names current. Two memory-probe system calls perPresent, repeated swapchain queries and an interface lookup for an already applied frame-latency setting are gone too, and in a game with no other overlay and no frame-generation runtime, where CaptureEngine's swapchain wrapper has already done the work, the inner hook now skips the routing it cannot need. The hook log's[PRESENT STAGE COST]line now also separates the D3D12 overlay's reset, recording, submission and capture, the prerender limit's wait and marker, the sharpen and gamma pass, the checks at the start ofPresent, the overlay draw under DLSS frame generation and the steps afterPresent, also in Streamline games with the Steam overlay, so the next cuts can be aimed from a log. The Vulkan layer, CaptureEngine's swapchain wrapper and games or frame-generation runtimes that present withPresent1report the same line now; none of them appeared in it before. The D3D12 and Vulkan overlays also stop copying their whole geometry into an upload buffer for every draw: each buffer keeps what it already holds, and the index list is written only when the text changes. D3D12 also takes the lowest finished buffer instead of rotating through all 16, so a text change is written two or three times rather than up to 16, which matters most for the megabyte of text on 32-bit D3D12. A new line every 600 frames reports the bytes written and the buffers in use. -
A third-party overlay's own D3D12 submissions were counted as the game's: the check for who submitted command lists looked at CaptureEngine's own code address instead of the caller, so it never recognized an overlay. It now reads the real caller and ignores an overlay's submissions once the game has been seen submitting directly. If an overlay hooks in above CaptureEngine, where every game submission arrives through it, nothing changes: they stay counted, and the hook log says so.
-
The D3D12 overlay in 32-bit games lost text and the frame-time graph: 32-bit D3D12 draws text as small solid rectangles because sampling the font texture hung the GPU, which took about 64,000 vertices for a normal overlay at 150% display scale. Past 65,536 vertices the overlay silently dropped the rest of the text and could no longer fit the graph (Mirror's Edge: about 91,000 rectangles dropped in 22 seconds). Rectangles with equal coverage in consecutive pixel rows now share one, about 22% fewer, and geometry past that limit is drawn with its own base vertex instead of being dropped.
-
The per-frame performance table no longer costs the game's thread: with debug logging (
log_level=debugortrace, the default), CaptureEngine writes one row per frame toperf_metrics_*.csv. Each row was formatted on the thread that presents the frame, and every 32nd frame also wrote to disk there. The presenting thread now only queues the row, and CaptureEngine's own background thread formats and writes the rows in order about ten times a second. If that thread falls behind by 2048 rows, or while CaptureEngine is closed and the game keeps running, the presenting thread writes the rows itself as before; the hook log reports when that happens. Rows still queued when the game exits are written before the file is closed. The Vulkan layer now does the same. Its rolling FPS columns (current FPS, 1% and 0.1% lows) are refreshed every 32 rows instead of every row: on D3D12, D3D11 and Vulkan each low walked about five seconds of frame history on the presenting thread for every frame, and on D3D12 even with the table off. -
D3D9 games that record their own state blocks no longer strip CaptureEngine's hooks: Windows' Direct3D 9 copies a fresh function table over a device's own whenever the game begins recording a state block. That removed every hook CaptureEngine had placed on the device for the rest of the session: forced anisotropic filtering and texture tracking, the
EndSceneoverlay hook, and theResethook the overlay needs to survive resolution changes and alt-tab. CaptureEngine now puts each hook back as soon asBeginStateBlock(andEndStateBlock) returns, but only where the slot holds exactly the function CaptureEngine had wrapped; another tool's hook, and the separate functions a single-threaded device records through untilEndStateBlock, are left alone. A rewrite CaptureEngine's own hook did not see is repaired at the next Present, and since the game's calls went past CaptureEngine until then, its sampler state is re-read from the device and its cached texture metadata dropped. A block a single-threaded device recorded through those separate functions re-reads the device's sampler state when applied, since CaptureEngine did not see what it recorded; on a multithreaded device, cached texture metadata is dropped after a rewrite, because another thread may have created a texture in between. -
Freeze watchdog render-thread handoff tracking: games such as Unreal Engine 3 titles often present frame 0 on the main thread before permanently handing presentation off to a dedicated render thread. The watchdog previously remained locked to the main thread's TID for its entire lifetime, logging helper heartbeat warnings on every frame and monitoring the wrong thread.
FreezeWatchdog::Heartbeat()now tracks presentation streaks on new threads and adopts the new render thread after 4 consecutive presents when no frame-generation runtime is presenting. -
Speculative D3D11 hook installation in legacy D3D games: internal loads of
system32\d3d11.dll(performed during frame 1 for DX9 shared-texture capture interop) previously satisfied the hook thread'sd3d11Or10DllPresentcheck and triggeredDX11Hook::Init(), spinning up a speculative dummy swap chain mid-game in pure D3D9/DirectDraw processes. The hook installer now gates D3D11 hooks on active legacy renderer confirmation (WasGameD3D9DeviceCreated()orWasDirectDrawInterfaceObserved()), requiring actual application D3D11/10 device creation before installing D3D11 hooks in legacy processes. -
DX9 live presentation interval and present overhead calculations: live present intervals and windowed status are now stored upon device creation and reset (
CreateDevice,CreateDeviceEx,Reset,ResetEx) and queried from the primary swap chain on the initial present if uninitialized. This prevents false fullscreen VSync fallback pacing when the device was already initialized with the requested presentation interval. Software post-present pacing is skipped when the FPS limiter is actively limiting and no fullscreen fallback is needed. In addition, recursive present timing overwrites are avoided by gating timing initialization to the outermost presentation, and present overhead calculations now exclude time blocked in the driver's hardware present call and CPU prerender limit wait. -
D3D9 forced anisotropic filtering on NVIDIA GPUs:
D3DCAPS9::TextureFilterCapson NVIDIA drivers advertisesD3DPTFILTERCAPS_MINFANISOTROPICbut notD3DPTFILTERCAPS_MAGFANISOTROPIC. Sampler override capability checks now require only minification anisotropy support for forced AF eligibility, promoting magnification to anisotropic filtering only when supported by the texture format's filter caps and otherwise keeping linear magnification. Redundant pure-deviceSetSamplerStatedriver writes are short-circuited when state and physical values already match, and device filter caps are logged on registration. -
Stable releases now reuse the developer tree's clang-tidy results: the first release with the shared cache (v0.1.7159) still re-analyzed all 1,484 files before building (23 minutes), because the two checkouts spelled the toolchain path with different separators and sorted junction-aliased inputs differently; cache fingerprints now ignore separator style and sort translation unit inputs by portable key (bringing shared cache hits from 0 to 1,489 of 1,491), all working copy files are normalized to LF, and the changelog tool writes the repository's LF line endings so checkouts remain byte-identical.
Release Assets
captureengine-0.1.7160.7z: core product binaries, PDBs, FFmpeg closure, and default configurationcaptureengine-setup-0.1.7160.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)testapps-0.1.7160.7z: standalone graphics & frame generation test executables and diagnostic toolsffmpeg-corresponding-source-0.1.7160.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.