Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: RenderWindow::capture() fps down  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

youri1er

  • Newbie
  • *
  • Posts: 3
    • View Profile
RenderWindow::capture() fps down
« on: February 06, 2015, 03:09:19 am »
Hi, i've make a game, and like "geometry wars" i want to put a post effect on the result of the renderWindow.

I''ve make a shader "Bloom". The probleme is that : my shader take one parameter : a texture
And the function RenderWindow::capture() decrease a lot my fps.

Have you and idea to improve my situation or to solve it ?

Sorry for my bad english.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: RenderWindow::capture() fps down
« Reply #1 on: February 06, 2015, 03:13:43 am »
Back to C++ gamedev with SFML in May 2023

youri1er

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: RenderWindow::capture() fps down
« Reply #2 on: February 06, 2015, 03:15:54 am »
I know, i read the documentation and i search before posting here.

But i don't know hot to get the final texture of my game... Have you another way to do it ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
AW: RenderWindow::capture() fps down
« Reply #3 on: February 06, 2015, 04:02:39 am »
Draw to a render texture then draw the render texture with the bloom shader to the window.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

youri1er

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: RenderWindow::capture() fps down
« Reply #4 on: February 06, 2015, 10:11:28 am »
Thank you it works fine. I've finish my grid of geometry wars.