Last active
December 23, 2015 16:39
-
-
Save Kerollmops/a46b69f543d5d336ca60 to your computer and use it in GitHub Desktop.
Fillit change trick
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
// 213s, before | |
inline t_pos scale_pos(t_pos pos) | |
{ | |
return ((t_pos){pos.x + FENCE_WIDTH, pos.y + FENCE_WIDTH}); | |
} | |
// 93.23s, now | |
inline void scale_pos(t_pos *pos) | |
{ | |
pos->x += FENCE_WIDTH; | |
pos->y += FENCE_WIDTH; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment