Skip to content

Instantly share code, notes, and snippets.

@Kerollmops
Last active December 23, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kerollmops/a46b69f543d5d336ca60 to your computer and use it in GitHub Desktop.
Save Kerollmops/a46b69f543d5d336ca60 to your computer and use it in GitHub Desktop.
Fillit change trick
// 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