Skip to content
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

make window position and size interpolate smoothly and independently … #130

Merged

Conversation

mieldepoche
Copy link
Contributor

…of framerate

Updates the window position and size in _process instead of _physics_process and replace lerps with a framerate-independant interpolation function.

  • this takes more resources on high refresh-rate monitors, but it should really not be a problem considering it's very small and that window movement and resize only happen usually when the game is paused.
  • I adjusted the interpolation weights to be much faster than the current behavior (the current behavior felt waay too slow and heavy to me). Those could be exposed as settings maybe, but that would be overkill I think.
  • I don't know what the "animation" is in regard to windows (there's position, size, and a special "animation" case). I chose a slow speed randomly, but it may not be fitting.

@Ark2000 Ark2000 merged commit f48532d into Ark2000:master Aug 12, 2023
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.

None yet

2 participants