Connect local ipcamera, delay is 1 second, too long

Computer A: win7 64, Intel 4Gen i3,4g memory
Edge + ipcamera, The delay is 20ms.
vscode+python3.8+opencv4.10, The delay is 20ms.
It’s ok.

Computer B: win10 64, amd 5900x, 16g memoy
Edge + ipcamera, The delay is 20ms.
But, vscode+python3.12+opencv4.10, The delay is 1 second, too long.

Host: Computer B + Vmware: win7 64
Edge + ipcamera, The delay is 20ms.
But, vscode+python3.12+opencv4.10, The delay is 1 second, too long.

import cv2
IP_ADDRESS = "rtsp://admin:123456@192.168.55.100"
cap = cv2.VideoCapture(IP_ADDRESS)
while True:
    ret, frame = cap.read()
    cv2.imshow('image',frame)
    if cv2.waitKey(5) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()