Cython z buffer speedup