Skip to content
Snippets Groups Projects
Commit 3bdecb96 authored by Armin Co's avatar Armin Co
Browse files

Smaller time steps

parent 7b1af551
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
namespace QPong namespace QPong
{ {
constexpr int arrayWidth = 384; constexpr int arrayWidth = 384 * 1;
constexpr int arrayHeight = 384; constexpr int arrayHeight = 384 * 1;
constexpr int numberOfThreads = 8; constexpr int numberOfThreads = 8;
constexpr unsigned arraySize = arrayWidth * arrayHeight; constexpr unsigned arraySize = arrayWidth * arrayHeight;
......
...@@ -138,7 +138,7 @@ const double batPotential(double x, double y, Player::Position pos) ...@@ -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) void Particle::manipulateParticleInPosition(int indexFrom, int indexTo)
{ {
auto pOneX = m_players[Player::Id::One]->getPosition().x; auto pOneX = m_players[Player::Id::One]->getPosition().x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment