Hi,
I am just running a simple code:
int main(int argc, char* argv[])
{
sf::RenderWindow Game(sf::VideoMode(800, 600, 32), "Box2d");
while(Game.IsOpened())
{
while(Game.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed)
Game.Close();
}
Game.Clear(sf::Color(127, 149, 237));
Game.Display();
}
}
when i check the CPU usage in task manager it is around 45-50%.
Why so much high percentage usage, am i doing something wrong?