Skip to content

Conversation

xezon
Copy link

@xezon xezon commented Oct 1, 2025

This change uses smoothened frame rate to scale movement for scrolling and camera to avoid jumps on longer stalls.

TODO

  • Update title
  • Replicate in Generals

@xezon xezon added Enhancement Is new feature or request Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project labels Oct 1, 2025
@helmutbuhler
Copy link

This creates an issue in this situation:

  • Load a replay
  • enable fast-forward
  • disable fast-forward
  • Move around with the camera. It will move slowly for a second or so.

@xezon
Copy link
Author

xezon commented Oct 7, 2025

Oh yes this happens because of the sudden change of average frame rate. Ok in that case we need a different solution.

@xezon xezon force-pushed the xezon/fix-scroll-jumps branch from 222f9ef to 4291c8d Compare October 7, 2025 20:09
@xezon
Copy link
Author

xezon commented Oct 7, 2025

I have appended a new solution that will floor the fps ratio at 5 fps to prevent big jumps on stalls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Is new feature or request Minor Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frame time for scroll distance needs to be clamped

2 participants