The following code:
#include <sfml/graphics.hpp>
#include <iostream>
int main()
{
sf::Image i;
int a;
std::cin>>a;
return 0;
}
Lets my application jump from 600 kilobyte memory usage to 13 megabytes (13,000 kb) after the line "sf::Image i". Adding a second image let's it jump only marginally (a few bytes).
Why is that? Is there a memory leak in there somewhere (maybe one of the sub libs you're using to do the loading?)?
I'm running in Release mode, with release libs of sfml. I'm using MSVC2010 and have compiler optimizations on (/O2).
Hardware: Intel i5 2500k, Radeon HD 6870, 4GB (don't remember exact type) Ram.
By the way, I still use sf::Image because I haven;t update to the latest revision yet (I assume it's unnecessary work because all it does is change a couple of names in my code - unless of course sf::Texture has some sick performance improvements which I doubt). [/code]