Implemented a render distance for performance enhancement