Ported my old SPH solver in Unity

时间:2022-11-27 20:18:14

Here is the link to the web player version,

http://www-scf.usc.edu/~taian/pages/sph/builds/12212014/12212014.html

Weekend project. Just wanted to rejuvenate my graphics programming stuff.

It was originally written in C, not even C++. Most operations are done with entire memcpy, memset..

In C#/Unity..Damn... so slow, guess will have to relearn GPGPU..

把4年前的SPH solver重新写在Unity里了

原本的C openGL程序在C#/Unity里慢了好多,当然你用List比直接memcpy数组要低效很多。。

以后优化优化,看来重新学习GPGPU是必要的了!!!