1
General / [SOLVED] SFML using 100% CPU (with limits on)
« on: September 13, 2011, 09:48:28 pm »
Wow I am an idiot. Instead of doing all that debugging I should have just reread the tutorial again. Alright this appears to be solved.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
_render.SetFramerateLimit(60);
while(_render.IsOpened())
{
sf::Event currentEvent;
if(_render.PollEvent(currentEvent))
{
if(currentEvent.Type == currentEvent.Closed)
_render.Close();
_render.Clear();
_render.Display();
}
}