Modify the render function
avoid to regenerated the memory each time!
Memory optimization is very very important!!!