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

Author Topic: slow frame rate  (Read 1798 times)

0 Members and 1 Guest are viewing this topic.

vicer1234

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
slow frame rate
« on: June 19, 2011, 02:49:03 pm »
Hi,
I tried to implement the water ripple effect using the image manipulation similar to shown in link
The strange thing in it is, when i use a large image like 800X600 or 1024X768 etc the processing becomes very slow.

It happens like its consuming lot of CPU!!! but I dont get the idea why is it happening since the CPU can handle good amount of
calculations at a time. If the pixels numbers are like 1024*768 = 786432 then also it can process it faster!!!!
Then why is it very slow in rendering?????

All suggestions are welcome

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
slow frame rate
« Reply #1 on: June 19, 2011, 02:52:22 pm »
How are we supposed to tell you why your code is slow, if we can't see it? ;)

And by the way, pixel shaders provide a much faster solution for this kind of effect.
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
slow frame rate
« Reply #2 on: June 19, 2011, 03:28:01 pm »
I would also propose pixel shaders so that it is done on the GPU instead, it's pretty much made to do heavy calculations fast.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio