[You better take a notepad to start with and write C ++ code for your algorithm, and then rewrite it for the GPU. Have you seen the modified source for the Kangaroo GPU that I posted? Another would say thanks. In general, I doubt your competence and do not see the point of further discussion.
First: you did not publish all the code.
Second: it is impossible to run your code.
Third: you dont show the video.
The discussion is over