Skip to content

fix(video): restore the ability to set a minimum fps target #4114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

andygrundman
Copy link
Contributor

@andygrundman andygrundman commented Jul 26, 2025

Description

This PR merges the current minimum FPS behavior with the old min_fps_factor, under a new name minimum_fps_target. It defaults to 0 (current "about half the stream FPS") and can be set to any value from 1-1000. (Note: input validation appears to be broken, but is out of scope for this fix.)

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@ReenigneArcher ReenigneArcher force-pushed the andyg.minimum_fps_target branch from d7e4028 to 59c69db Compare July 30, 2025 02:14
@ReenigneArcher ReenigneArcher changed the title fix(video): restore the ability to set a minimum fps target, with more user-friendly wording fix(video): restore the ability to set a minimum fps target Jul 30, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
1 New Code Smells (required ≤ 0)
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link

codecov bot commented Jul 30, 2025

Bundle Report

Changes will increase total bundle size by 706 bytes (0.04%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sunshine-esm 1.75MB 706 bytes (0.04%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sunshine-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/_plugin-*.js 238 bytes 342.19kB 0.07%
assets/config-*.js 468 bytes 57.8kB 0.82%

Copy link

codecov bot commented Jul 30, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 11.31%. Comparing base (99cf9ac) to head (59c69db).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/video.cpp 0.00% 4 Missing ⚠️
src/config.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4114      +/-   ##
==========================================
- Coverage   11.32%   11.31%   -0.01%     
==========================================
  Files          92       92              
  Lines       17570    17572       +2     
  Branches     8238     8240       +2     
==========================================
  Hits         1989     1989              
- Misses      14900    14902       +2     
  Partials      681      681              
Flag Coverage Δ
Linux-AppImage 11.02% <0.00%> (-0.01%) ⬇️
Windows-AMD64 12.45% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/config.h 0.00% <ø> (ø)
src/config.cpp 0.00% <0.00%> (ø)
src/video.cpp 21.31% <0.00%> (-0.02%) ⬇️

@ReenigneArcher ReenigneArcher merged commit b3ee60d into LizardByte:master Jul 30, 2025
46 of 48 checks passed
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.

New frame time limit does not work well with VRR
2 participants