Skip to content

Commit

Permalink
Improve UI
Browse files Browse the repository at this point in the history
  • Loading branch information
xorz57 committed Jan 25, 2024
1 parent 3b9e8c2 commit 62c011d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void Application::Run() {
ImPlot::CreateContext();

const sf::Time fixedDeltaTime = sf::seconds(1.0f / 128.0f);
const float timeScale = 4.0f;
float timeScale = 5.0f;
sf::Time accumulator = sf::Time::Zero;
sf::Clock deltaClock;
while (window.isOpen()) {
Expand Down Expand Up @@ -116,11 +116,11 @@ void Application::Run() {
}
}

ImGui::Begin("Statistics");
ImGui::Text("timeScale : %.5f", timeScale);
ImGui::Begin("Settings");
ImGui::SliderFloat("timeScale", &timeScale, 0.0f, 10.0f);
ImGui::Text("fixedDeltaTime : %.5f", fixedDeltaTime.asSeconds());
ImGui::Text("deltaTime : %.5f", deltaTime.asSeconds());
ImGui::Text("scaledDeltaTime : %.5f", scaledDeltaTime.asSeconds());
ImGui::Text("fixedDeltaTime : %.5f", fixedDeltaTime.asSeconds());
ImGui::End();

ImGui::SFML::Render(window);
Expand Down

0 comments on commit 62c011d

Please sign in to comment.