diff options
| author | Ray <[email protected]> | 2024-06-16 11:17:34 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-06-16 11:17:34 +0200 |
| commit | dcf2f6a8e97911c90efce5722bd7f0c7cdc8601e (patch) | |
| tree | b511e850ccbbbae325d624ef44bc70be907b7c7e /examples/models/models_waving_cubes.c | |
| parent | 307c998495a769092a8587c91a3efdb526de909c (diff) | |
| download | raylib-dcf2f6a8e97911c90efce5722bd7f0c7cdc8601e.tar.gz raylib-dcf2f6a8e97911c90efce5722bd7f0c7cdc8601e.zip | |
Added note about performace #4067
Diffstat (limited to 'examples/models/models_waving_cubes.c')
| -rw-r--r-- | examples/models/models_waving_cubes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/models/models_waving_cubes.c b/examples/models/models_waving_cubes.c index 5dc1fc4a..521a4afd 100644 --- a/examples/models/models_waving_cubes.c +++ b/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 |
