Skip to content

Commit

Permalink
Merge pull request #28 from Im-Rises/develop
Browse files Browse the repository at this point in the history
Updated
  • Loading branch information
Im-Rises committed May 29, 2023
2 parents 67cefe0 + 47727c2 commit 9313f14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ParticleSimulator/ParticleSimulatorLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ ParticleSimulatorLauncher::ParticleSimulatorLauncher() {
if (window == nullptr)

Check failure on line 75 in ParticleSimulator/ParticleSimulatorLauncher.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter

/ParticleSimulator/ParticleSimulatorLauncher.cpp:75:27 [readability-braces-around-statements

statement should be inside braces
exit(1);
glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync
// glfwSwapInterval(1); // Enable vsync
glfwSwapInterval(0); // Disable vsync
// glfwWindowHint(GLFW_REFRESH_RATE, 0); // Disable refresh rate
// glfwWindowHint(GLFW_REFRESH_RATE, GLFW_DONT_CARE); // Disable refresh rate
// glfwWindowHint(GLFW_REFRESH_RATE, 60);

// Callbacks
glfwSetWindowUserPointer(window, this);
Expand Down Expand Up @@ -222,7 +226,7 @@ void ParticleSimulatorLauncher::start() {
#endif
{
auto currentTime = std::chrono::high_resolution_clock::now();

deltaTime = std::chrono::duration<float>(currentTime - previousTime).count();

handleInputs();
Expand Down

0 comments on commit 9313f14

Please sign in to comment.