3eda9619f91cbcf3a32cdca8c4ebd2530f00cc2e
While the drawing code already skipped drawing any key points that are not in view, it did that with an `if` check within the `for` loop. This can be speed up quite a bit by calculating the bounding indices beforehand and only iterating that range. | - | Before | After | | - | - | - | | `draw_fcurve_selected_keyframe_vertices` | 44850ns | 3194ns | | `graph_main_region_draw` | 32ms | 21ms | Test file used https://download.blender.org/ftp/sybren/animation-rigging/heavy_mocap_test.blend Pull Request: https://projects.blender.org/blender/blender/pulls/120521
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
