151
General / Re: Drawing Too Many Sprites Slows Down Game
« on: January 20, 2021, 02:32:55 am »
when posting code, put it in the post (with [ code ] tags), not as separated source files.
are you letting the cpu sleep between frames? there is a specific function for that, sf::sleep:
https://www.sfml-dev.org/documentation/2.5.1/group__system.php#gab8c0d1f966b4e5110fd370b662d8c11b
are you letting the cpu sleep between frames? there is a specific function for that, sf::sleep:
https://www.sfml-dev.org/documentation/2.5.1/group__system.php#gab8c0d1f966b4e5110fd370b662d8c11b