Hi. I've been working on a network game, and after i implemented box2d on the server i noticed i was starting to get lag, so after a while of searching for bugs i tried running broadband test before and after i started the server.
Before i had 97/97 mbit up down, and after i started the server i had about 10-15 mbit down, and 20 up.
I was thinking it was a networking issue, but i commented all my code out until this was left:
#include <SFML/System.hpp>
int main(){
sf::Clock clock;
while (1){
clock.restart();
}
return 0;
}
This code takes out 80-90% of my internet. clock.getElapsedTime(); also does it. I really need to use the timer for my application though but since it's a network app, it makes it lag.
Anyone else experience the same issue?
edit: Also this will cause the same issue:
int main(){
while (1){
sf::Clock clock;
}
return 0;
}