Hello! I was looking at sdl, when someone mentioned SFML. And i liked it very much!
Just one problem...
#include <SFML/Graphics.hpp>
int main(int argc, char* argv[]) {
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "SFML Window");
sf::Event Event;
while (window.IsOpened()) {
while (window.PollEvent(Event)) {
if (Event.Type == sf::Event::Closed)
window.Close();
}
window.Clear();
window.Display();
}
return 0;
}
This simple code + SFML2 from git + Linux + compiled with gcc 4.5.3 -O2 = 37mb RAM eaten. Is it normal? :shock: My computer has only 1GB RAM, 4% for a program that does absolutely nothing is a bit too much...
top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18468 player 20 0 56132 37m 6172 R 80.7 3.7 0:10.23 projectG
---- Edit ----
Did pmap just now. Freaking ati drivers eat 29 mb. :evil: That means this is not SFML problem?
Btw, i've noticed Xinerama and Randr libs loaded, though i don't use them... Is it intended?