0 Members and 2 Guests are viewing this topic.
sf::RenderTexture render;Clock.Restart();render.Create(1024,768);std::cout << gameClock.GetElapsedTime().AsMilliseconds() <<std::endl;
Try creating it once, then just printing on it at each frame.
Check if you are re-constructing your object, thus re-creating the RenderTexture.
int main(){ sf::RenderWindow App(sf::VideoMode(1024,768,32),"SFML Project",sf::Style::Close); App.ShowMouseCursor(false); Game myGame; myGame.Run(App); return 0;}