made optimization to the function that check if really visible

based on the "was_rendered_this_frame" function.