remove modulo division in render cycle