Sfml lostFocus / gainedFocus cpu usage
Why when I run this simple code and just doing nothing CPU usage by this app is around 0.4% #include <SFML/Graphics.hpp> int main() { sf::RenderWindow window(sf::VideoMode(800, 800), "hi", sf::Style::Close | sf::Style::Titlebar); window.setFramerateLimit(60); sf::Event event; bool lostFocus = false; while (window.isOpen()) { while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); else if (event.type == sf::Event::LostFocus) lostFocus… Read More Sfml lostFocus / gainedFocus cpu usage