render and resources manager working
checking before free memory