jfjoch_viewer: Auto load performance 0.5 - 20 Hz

This commit is contained in:
2025-12-12 15:41:03 +01:00
parent a124b14f9a
commit d75848c256

View File

@@ -72,8 +72,8 @@ private:
// Adaptive autoload interval based on recent load+analysis time
MovingAverage autoload_ms_ma{8}; // window size (tune as needed)
int autoload_interval_min_ms = 100; // don't hammer the server/UI
int autoload_interval_max_ms = 5000; // avoid becoming "stuck" slow
int autoload_interval_min_ms = 50; // 20 Hz is the top performance!
int autoload_interval_max_ms = 2000; // 0.5 Hz as bottom limit
float autoload_safety_factor = 2.0f;
void LoadImage_i(int64_t image_number, int64_t summation);