len3d

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

* Tracing rays is fast, shading is slow

* normalize is slow and should be avoided as much as possible

* C is not faster than C++, correct use of C++ features can improve performance

* SSE is not always faster, should be used without load and store from FPU

* Taking branch is slower, computation is faster

* Computation is fast, accessing memory is slow

* Do not stuck the stack memory, make best use of registers

* Write clean code, optimize when the code is clean enough

* Always use a profiler, the bottleneck is not what you expect for most of the time

 

posted on 2013-02-14 15:09  Len3d  阅读(253)  评论(0编辑  收藏  举报