1 The primary performance bottleneck in the code was rendering, specifically due to inefficient visibility checks that caused excessive CPU work.
“the slow point in the code was the rendering. So, when I render the scene, I only send I try to only send the visible objects to the GPU to be rendered. So, that way the GPU doesn't spend as much time processing things that aren't visible on the screen.”