// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once // Whether the viewer talks to its display server across a network link (ssh -X and the like). // On such a link every repaint is shipped as pixels, so interactions that repaint per input // event are throttled to the hover cadence instead. Detected once from the session; the // JFJOCH_VIEWER_REMOTE environment variable (0/1) and the View-menu toggle override it. // Only call after QApplication exists - detection reads the platform name. bool RemoteDisplayMode(); void SetRemoteDisplayMode(bool active); // The cadence remote-throttled updates run at, chosen to match JFJochImage's hover rate limit: // far below the input event rate, above what the eye follows. constexpr int kRemoteRepaintIntervalMs = 66;