Add option to limit FPS without VSync #606

Open
opened 2026-01-06 19:04:19 +01:00 by SakulFlee · 0 comments
Owner

When VSync is disabled, the engine runs at unlimited FPS which wastes GPU resources and power. Add a configurable FPS cap (e.g., via AppSettings::fps_limit) that works independently of VSync.

Acceptance criteria:

  • New field in AppSettings (e.g., fps_limit: Option<u64>)
  • When set, the frame loop sleeps/delays to match the target FPS
  • Should not interfere with VSync when both are enabled
  • Test with both AutoVsync and AutoNoVsync present modes
When VSync is disabled, the engine runs at unlimited FPS which wastes GPU resources and power. Add a configurable FPS cap (e.g., via `AppSettings::fps_limit`) that works independently of VSync. **Acceptance criteria:** - New field in `AppSettings` (e.g., `fps_limit: Option<u64>`) - When set, the frame loop sleeps/delays to match the target FPS - Should not interfere with VSync when both are enabled - Test with both `AutoVsync` and `AutoNoVsync` present modes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SakulFlee/Orbital#606
No description provided.