Optimize tick rendering

This implements a suggestion by @sebablanco in #59