Jarvis-X / parallel-ripples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parallel-ripples

A project for the practice and principle in parallel computing. We aim at generating ripples in a 2D liquid plane and rendering them in real-time under 2K+ resolution. The basic pattern is a sparse matrix multiplication with the frame buffer, in a fancy way.

Technical details:

Requirements

Obviously, this project was developped in VS 2019. Thus, if intending to work with the .sln solution, one needs to configure OpenCV and OpenCL. More specifically, tell the MSVS comipler where to find the header files and the libraries.

The ripple algorithm

Further optimization

  • See what is wrong with my trials of using local cache on the device. It does not give me a performance boost nor work at all. Massive comment sections in the kernel file are from this failure.
  • We schedule the frame update calls and the screen render calls in parallel, so in theory, the time it takes to show a frame is cut to the maximum amount of time between updating and imshow the frame.

About


Languages

Language:C++ 66.1%Language:C 33.9%