-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unroll & reduce dot access in rectangle drawing helpers (#2198)
* Optimize draw_rect_outline by reducing dot access * Reduce dot access by fetching values once * Add inline diagram of the rectangle points * Unroll rotated portion of draw_rect_outline * Use direct indexed access instead of slower properties in texture drawing * Attempt to work around broken mypy * Use Point2List * Fix bug in closing rectangle corner ---------
- Loading branch information
Showing
1 changed file
with
63 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters