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

Better framepacing - Windows SDL Edition #330

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

Spodi
Copy link
Contributor

@Spodi Spodi commented Jul 10, 2023

New frame timing approach for OpenGL renderer:

  • improved timer precision to minimize missed frames

Hopefully helps non-windows a bit too. -> nope need help for other architectures and compilers

@Spodi
Copy link
Contributor Author

Spodi commented Jul 11, 2023

This won't work. Maybe I can do it for Windows only. I don't want to mess with compiler and instruction sets 😅
Maybe someone else can. Trying to do a busy-wait here and windows YieldProcessor() is pretty much what I want here. But ofc this isn't available on Linux and Mac

@Spodi Spodi changed the title Better framepacing - SDL Edition Better framepacing - SDL Edition (help needed) Jul 16, 2023
@Spodi Spodi closed this Aug 10, 2023
@Spodi Spodi deleted the framepacing-SDL branch August 10, 2023 22:25
@Spodi Spodi restored the framepacing-SDL branch August 10, 2023 22:35
@Spodi Spodi reopened this Aug 10, 2023
@Spodi Spodi changed the title Better framepacing - SDL Edition (help needed) Better framepacing - Windows SDL Edition Aug 10, 2023
@Spodi Spodi marked this pull request as ready for review September 24, 2023 14:51
Couldn't figure out that stuff for other compilers, OSes and architectures. sorry
@Kenix3 Kenix3 merged commit 3abe308 into Kenix3:main Oct 2, 2023
4 checks passed
KiritoDv pushed a commit to KiritoDv/libultraship that referenced this pull request Oct 6, 2023
* Use high-resolution timer on Win 10

* Better timing for windows

Couldn't figure out that stuff for other compilers, OSes and architectures. sorry
@Spodi Spodi deleted the framepacing-SDL branch November 9, 2023 19:01
garrettjoecox added a commit to garrettjoecox/libultraship that referenced this pull request May 15, 2024
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.

2 participants