Ported my old SPH solver in Unity

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是必要的了!!!

上一篇:通过PowerShell发送TCP请求


下一篇:switch语句:适用于一个条件有多个分支的情况---分支语句