1
General discussions / How much memory take a simple sfml app
« on: February 01, 2014, 12:29:19 am »
This simple app
Is this normal?
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window{sf::VideoMode::getDesktopMode(), "SFML window"};
window.setFramerateLimit(60);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.display();
}
return 0;
}
takes 25MiB.int main()
{
sf::RenderWindow window{sf::VideoMode::getDesktopMode(), "SFML window"};
window.setFramerateLimit(60);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.display();
}
return 0;
}
Is this normal?