We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b50b892 commit 8da5336Copy full SHA for 8da5336
1 file changed
src/mips_core.rs
@@ -499,15 +499,15 @@ impl MipsCore {
499
const TARGET_10MS: u64 = 10_000_000;
500
if dc > 0 {
501
let target_ns = delta.saturating_mul(dt_ns) / dc * 2;
502
- // If estimated target is under 5ms, treat as 1kHz tick, else 100Hz.
503
- let snapped_ns = if (target_ns >> 16) < 5_000_000 {
+ // If estimated target is under 3ms, treat as 1kHz tick, else 100Hz.
+ let snapped_ns = if (target_ns >> 16) < 3_000_000 {
504
TARGET_1MS
505
} else {
506
TARGET_10MS
507
};
508
let denom = dc.saturating_mul(snapped_ns);
509
self.count_step = (delta.saturating_mul(dt_ns) / denom)
510
- .clamp(1 << 14, 10 << 15);
+ .clamp(1 << 12, 10 << 15);
511
#[cfg(feature = "developer_ip7")]
512
{
513
let total_samples: u32 = self.compare_delta_stats.values().sum();
0 commit comments