SFML community forums
Help => Window => Topic started by: andrewkoro105 on June 27, 2022, 10:33:42 am
-
When I changed the reference from RenderWindow to RenderTarget, the render function slowed down by half. Is this a problem in SFML or in our program?
-
RenderTarget is an abstract class, do you mean RenderTexture?
How do you measure the mentioned performance?
-
Sorry, I work with this person it in the project, we have a hierarchy of classes that store a reference where they are rendered. This can be either RenderTexture or RenderWindow (passed during initialization), so we store a reference to RenderTarget, after we changed the reference type from RenderWindow to RenderTarget (but the reference still passes the same window) our program has halved the FPS we were counting with sf::Clock.