Нет описания изменений
Нет описания изменений
Modern Keystrokes 1.21.7
Core Fixes and Optimizations:
Thread Safety Implementation: Migrated click-tracking collections to ConcurrentLinkedDeque. This resolves potential ConcurrentModificationException errors and client hangs by ensuring thread-safe access between the rendering and input threads.
Memory Leak Prevention: Optimized the timestamp cleanup logic to run independently of the HUD's visibility state. This ensures that unused data is consistently purged from memory even when the mod is toggled off.
Configuration Reliability: Added automated directory checks during the save process. The mod now verifies the existence of the configuration folder before writing, preventing file system errors.
Compatibility Recommendations:
Sodium Integration: To mitigate known rendering issues in 1.21.7 (such as UBO capacity overflows and flickering), the use of Sodium is highly recommended for stable performance.
Fixed critical crash risk (ConcurrentModificationException): click metric processing logic moved to a thread-safe environment.
Changed FPS calculation algorithm: implemented native game client method instead of an unstable background counter.
Synchronized RGB indicator animation with system time. Color change speed no longer depends on the current frame rate.
Fixed coordinate calculation logic: the FPS panel now correctly moves along the Y-axis with the main block.
Set mathematical limits for X/Y sliders in the settings menu. Eliminated the possibility of the HUD moving off-screen when resizing the game window.
Fixed critical crash risk (ConcurrentModificationException): click metric processing logic moved to a thread-safe environment.
Changed FPS calculation algorithm: implemented native game client method instead of an unstable background counter.
Synchronized RGB indicator animation with system time. Color change speed no longer depends on the current frame rate.
Fixed coordinate calculation logic: the FPS panel now correctly moves along the Y-axis with the main block.
Set mathematical limits for X/Y sliders in the settings menu. Eliminated the possibility of the HUD moving off-screen when resizing the game window.

A fabric mod that display keystrokes and CPS (1.21.11-1.20.1)