added release cpu memory and depth test!