def frame_checkups():
    """Perform various checkups.

    Meant to be used at the beginning of each frame in the
    app loop.
    """
    ### keep constants fps
    maintain_fps(PLAY_REFS.fps)

    ### increment frame number
    GENERAL_NS.frame_index += 1

    ### if there is an ongoing test, check whether
    ### an assertion must be executed in the current
    ### frame and do so if it is the case

    if (
        PLAY_REFS.ongoing_test is not None
        and GENERAL_NS.frame_index in PLAY_REFS.test_frames
    ):

        (
            APP_REFS
            .playsupport
            .perform_frame_assertions
            (PLAY_REFS.ongoing_test, GENERAL_NS.frame_index)
        )
Perform various checkups.

    Meant to be used at the beginning of each frame in the
    app loop.
    
nodezator/pygamesetup/services/play.py