Implement frame limiter. (#60)

* Implement audio timing with integer math.

* Add busy loop to audio thread.

* Implement a frame limiter.

* Implement implot.

* Add more stuff to the profiler window.

* Redo frame limiter logic to fix drifting.

* Move frame limiter, add limiters for SFD & loading screen.

* Update waiting logic for audio thread.

* Correct small delta time errors.

* Decrease delta time error threshold.

* Set busy wait threshold to 2ms.

* Change spin wait in D3D12 present to infinite wait.

* Replace FPS literals with constants.
This commit is contained in:
Skyth (Asilkan)
2024-12-22 19:58:06 +03:00
committed by GitHub
parent 314a092747
commit f1416c85ba
13 changed files with 211 additions and 31 deletions
+4 -1
View File
@@ -57,4 +57,7 @@
url = https://github.com/martinus/unordered_dense.git
[submodule "thirdparty/SDL_mixer"]
path = thirdparty/SDL_mixer
url = https://github.com/libsdl-org/SDL_mixer
url = https://github.com/libsdl-org/SDL_mixer
[submodule "thirdparty/implot"]
path = thirdparty/implot
url = https://github.com/epezent/implot.git