Hi there SFML team
Is there any reason why I should be getting 45000 page faults and 430 cache faults per second running a simple SFML program? I am using a 64 bit i5 with 8 m ram running codeblocks, mingw 4.7.1 and SFML 2.3.
"ordinary" C++ programs don't do this, even the most complex I have tried.
I am pretty sure I have all my link libraries set up properly, as well as path variables etc. Anyway the programs in SFML I have been making all compile and run.
This is the simple program that I used to test:
void testpagefaults()
{
sf::RenderWindow window;
window.create(sf::VideoMode(200,200), "PF Map");
sf::CircleShape circle(20);
circle.setOrigin(20,20);
circle.setPosition(100,100);
// run the main loop
while (window.isOpen())
{
// handle events
sf::Event event;
while (window.pollEvent(event))
{
if(event.type == sf::Event::Closed)
window.close();
}
// draw the map
window.clear();
window.draw(circle);
window.display();
}
}
Has anybody any idea what could be causing this? And do I need to worry about it?
cheers
Jeremy