From 3bdecb96c3d4324a2c121bd5519722629a07aba9 Mon Sep 17 00:00:00 2001 From: Armin <armin.co@hs-bochum.de> Date: Mon, 28 Sep 2020 09:31:19 +0200 Subject: [PATCH] Smaller time steps --- qpong_core/Common.hpp | 4 ++-- qpong_core/Particle.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qpong_core/Common.hpp b/qpong_core/Common.hpp index 095bddf..1e0a6c6 100644 --- a/qpong_core/Common.hpp +++ b/qpong_core/Common.hpp @@ -9,8 +9,8 @@ namespace QPong { -constexpr int arrayWidth = 384; -constexpr int arrayHeight = 384; +constexpr int arrayWidth = 384 * 1; +constexpr int arrayHeight = 384 * 1; constexpr int numberOfThreads = 8; constexpr unsigned arraySize = arrayWidth * arrayHeight; diff --git a/qpong_core/Particle.cpp b/qpong_core/Particle.cpp index 9e714e2..87203bc 100644 --- a/qpong_core/Particle.cpp +++ b/qpong_core/Particle.cpp @@ -138,7 +138,7 @@ const double batPotential(double x, double y, Player::Position pos) } -constexpr double dt = 0.15; +constexpr double dt = 0.1; void Particle::manipulateParticleInPosition(int indexFrom, int indexTo) { auto pOneX = m_players[Player::Id::One]->getPosition().x; -- GitLab