SFML community forums
Help => Graphics => Topic started by: vicer1234 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 http://www.youtube.com/watch?v=fdVLPoJtDgA&feature=channel_video_title
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
-
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.
-
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.