SFML community forums

Help => Window => Topic started by: andrewkoro105 on June 27, 2022, 10:33:42 am

Title: RenderTarget slow
Post 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?
Title: Re: RenderTarget slow
Post by: eXpl0it3r on June 27, 2022, 01:57:01 pm
RenderTarget is an abstract class, do you mean RenderTexture?

How do you measure the mentioned performance?
Title: Re: RenderTarget slow
Post by: Hedgeberry on June 27, 2022, 11:10:18 pm
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.