added useful function to check if something was rendered in current frame