hello everybody
is there any way to directly move the view copy stored in the window object?
sf::RenderWindow window;
sf::View view;
view.setCenter(sf::Vector2f(100, 0));
view.setSize(400, 400);
window.create(sf::VideoMode(400,400), "Test!");
window.setView(view);
according to
this topic, i should call this line every time the view is changed, but it made my cpu usage go from less than 1% to about 48%
window.setView(view);
so, isn't there any way to directly move the view copy stored in the window object?
thanks in advance!