Skip to content

Conversation

@trek-e
Copy link

@trek-e trek-e commented Jan 24, 2026

Summary

Adds automatic frame rate throttling to reduce CPU/power usage when the application is idle.

Behavior

State Frame Rate Trigger
Active 60 FPS Any input detected
Idle 15 FPS 2+ seconds without input
Background 15 FPS App loses focus

Input Detection

  • Keyboard (any key)
  • Mouse movement
  • Mouse clicks (any button)
  • Scroll wheel

Changes

  • New IdleThrottler.cs component
  • Added to scene via ViewInitializer.Awake()

🤖 Generated with Claude Code

trek-e and others added 2 commits January 23, 2026 18:39
- STACK.md - Technologies and dependencies
- ARCHITECTURE.md - System design and patterns
- STRUCTURE.md - Directory layout
- CONVENTIONS.md - Code style and patterns
- TESTING.md - Test structure
- INTEGRATIONS.md - External services
- CONCERNS.md - Technical debt and issues
Add IdleThrottler component that:
- Runs at 60 FPS during active use
- Drops to 15 FPS after 2 seconds of inactivity
- Detects keyboard, mouse movement, clicks, and scroll wheel
- Also throttles when app loses focus

This significantly reduces CPU/power usage when the app
is running but not being actively used.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant