Optimise texture sampling demo