Remove unused renderObjectList
Reuse the visited set and the toVisit stack instead of allocating each frame