Repository navigation
frontend: Probe the GPUs for the GPU status on a thread at launch - #1178
Merged
Merged
Conversation
…(RED, Refs #1172) DeviceCache in rust/obs-gpu-status is a todo!() core. device_cache.rs: devices_are_probed_once, and a report made while a prefetch is probing waits for it instead of probing again. Both fail (todo).
…EEN, Fixes #1172) The first obs_gpu_status_report probed the system's GPUs (sysfs and a nvidia-smi subprocess, ~40 ms) on the startup path, after graphics init. OBSApp::AppInit now starts that probe on a thread (obs_gpu_status_prefetch); DeviceCache keeps one probe per process, and a report made while the prefetch is still probing joins it instead of probing again. Report contents do not change. Launch to main window, median of 8 interleaved runs (2x NVIDIA): 0.996 s -> 0.933 s. device_cache: 2/2; obs-gpu-status: 52/52.
3 of 7 tasks
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 #1172
RED:
device_cache.rs(Tier 1) against atodo!()DeviceCache: both tests fail. GREEN: 2/2, obs-gpu-status 52/52.OBSApp::AppInitcallsobs_gpu_status_prefetch(); the report joins a running prefetch instead of probing again. Report contents unchanged. Measured: window median of 8 interleaved runs 0.996 s → 0.933 s. Tiers 2-4 do not apply (no C original, no protocol).