DiagnosticsOptions
此内容尚不支持你的语言。
Defined in: diagnostics/Diagnostics.ts:49
Extended by
Section titled “Extended by”Properties
Section titled “Properties”flushIntervalSec?
Section titled “flushIntervalSec?”
optionalflushIntervalSec?:number
Defined in: diagnostics/Diagnostics.ts:63
Seconds between handing what has accumulated to the sink. Zero delivers on the next frame, which is rarely what a network sink wants.
maxDistinct?
Section titled “maxDistinct?”
optionalmaxDistinct?:number
Defined in: diagnostics/Diagnostics.ts:60
How many distinct problems to track at once. Reached, further NEW problems are dropped (counted in DiagnosticsAPI.dropped) while the ones already known keep counting.
Keeping the earliest rather than the newest is deliberate: when a game comes apart it comes apart in cascade, and the first distinct failure is the one that explains the next fifty. An LRU here would evict the cause and keep the consequences.