码迷,mamicode.com
首页 > 编程语言 > 详细

Ported my old SPH solver in Unity

时间:2014-12-22 15:43:59      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:

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

Ported my old SPH solver in Unity

标签:

原文地址:http://www.cnblogs.com/antai/p/4178130.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!