mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 15:19:58 -04:00
Say that a later limit loads RivaTuner Statistics Server's hooks library in a run kept out at its start.
The review found docs/architecture.md claiming that a run kept out of RTSS from its first present never loads the hooks library, its thread only reading RTSS's settings. That holds only for NX2NAVI_RTSS=0: once frame generation or low latency is switched off, a limit is wanted, rtss_decide.h rtss_wants_hooks lets the poll load the library, and the limit goes into the profile as usual (tests/rtss_worker_check.c kept_lowlat_then_limit). The paragraph now says that the thread reads only while RTSS is kept out, that a later limit loads the library, and that NX2NAVI_RTSS=0 keeps the thread read-only for the run; it also says the profile gets back what it held before the run changed it. The same claim is corrected in rtss_limit.c's header and read_settings comments, in rtss_decide.h rtss_wants_hooks's comment, and in find_rtss's start-up line for a kept-out first want, which now says the thread only reads while RTSS is kept out. Docs, comments and one log line's wording: rtss_limit_check passes 24 of 24, check_content passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -113,7 +113,7 @@ typedef struct {
|
||||
} RtssOut;
|
||||
|
||||
// The hooks library is loaded only on a poll that may write the profile: a limit is wanted, RTSS is not out of it for
|
||||
// the run, and it runs. A kept-out run never loads it.
|
||||
// the run, and it runs. A poll of a kept-out want never loads it; a later limit does.
|
||||
static inline int rtss_wants_hooks(const RtssState *s, const RtssIn *in) {
|
||||
return in->want >= 0 && !s->fail && in->app.running;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user