libretro / libretro/RetroArch

When changing the refresh rate in settings, make the steps larger the longer the keys are pressed

Open
#12,739 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

The refresh rate changes by a 0.001 Hz step with each key press. Holding the left or right keys does not make the steps larger.

This behavior is very user unfriendly. Make it so that as the key is kept pressed, the steps get larger and larger.

As an example:

After 2 seconds: 0.01 Hz steps
After 5 seconds: 0.1 Hz steps
After 10 seconds: 1 Hz steps

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the settings code that handles refresh-rate changes and the left/right key input path, then trace how repeated key presses are timed. Implement the stated step increases at 2, 5, and 10 seconds, and verify that holding either key changes the refresh rate by the expected increments.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.