Repository navigation
obs-nvenc: Reuse obs-nvenc-test's answer while the driver, GPUs and test are unchanged - #1176
Merged
Merged
Conversation
This was referenced Oct 17, 2026
…st (RED, Refs #1170) test_nvenc_caps_cache (tests.d) checks the cache file format and the key built from a fake sysfs (driver version, NVIDIA display controllers in bus order, test program identity) against stubs in nvenc-caps-cache*.c.h, their own unity groups (BUILD.md) so the test builds them without CUDA or NVENC. Fails: saved_caps_are_read_back_for_their_key, key_names_driver_and_nvidia_gpus, key_changes_with_driver_gpus_and_test.
zackees
force-pushed
the
fix/nvenc-caps-cache
branch
from
October 17, 2026 06:43
64c245c to
070a3f3
Compare
Member
Author
|
Rebuilt on master after the BUILD.md unity-group conversion of this plugin (and #1184's Fast Gate fix): the policy/cache code is now |
…est are unchanged (GREEN, Fixes #1170) obs-nvenc-test initialises CUDA and opens an encoder session on every GPU, ~0.3 s at every start, and OBS reads only static capabilities from it. A successful answer is now kept in obs-nvenc's config directory (nvenc-caps-cache.ini) with a key of the kernel driver version, every NVIDIA display controller on the PCI bus and the test program's size and mtime; the test runs again when any of them changes. Failures are never kept. Windows has no key yet and runs the test as before. Launch to main window (2x NVIDIA, after #1168): 1.43 s -> 1.07 s; nvenc_check 300 ms -> 1.5 ms. An NVENC H.264 recording made from the cached answer plays. test_nvenc_caps_cache: 6/6.
zackees
force-pushed
the
fix/nvenc-caps-cache
branch
from
October 17, 2026 07:05
070a3f3 to
8ee6317
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1170
RED:
test_nvenc_caps_cacheagainst stubs failssaved_caps_are_read_back_for_their_key,key_names_driver_and_nvidia_gpus,key_changes_with_driver_gpus_and_test. GREEN: 6/6 (fake sysfs fixture).Cache file
nvenc-caps-cache.iniin obs-nvenc's config dir: key = kernel driver version, every NVIDIA display controller (slot=device id, bus order), test program size:mtime; only successful answers are kept. Windows: no key, test runs as before (nvenc-caps-cache-windows.c).Measured (with #1168): launch → window 1.43 s → 1.14 s;
nvenc_check300 ms → 1.5 ms. Verified an NVENC H.264 recording (simple output,obs-nvencencoder) made from the cached answer.