浏览代码

Added note about performace #4067

pull/4074/head
Ray 1年前
父节点
当前提交
dcf2f6a8e9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      examples/models/models_waving_cubes.c

+ 2
- 0
examples/models/models_waving_cubes.c 查看文件

@ -89,6 +89,8 @@ int main()
};
// Pick a color with a hue depending on cube position for the rainbow color effect
// NOTE: This function is quite costly to be done per cube and frame,
// pre-catching the results into a separate array could improve performance
Color cubeColor = ColorFromHSV((float)(((x + y + z)*18)%360), 0.75f, 0.9f);
// Calculate cube size

正在加载...
取消
保存