HDMI Switching like that takes long because there is a EDID negotiation going on between the minitor and the input devices. If you want to switch fast and often your best bet is getting an HDMI switcher that is basically always connected to the monitor and both sources and then toggles between the two. Beware of the supported resolutions and framerates. A cheap hack would also be to connect your second source to the…
[1] https://www.nvidia.com/content/Control-Panel-Help/vLatest/en...
[2] https://nvidia.custhelp.com/app/answers/detail/a_id/3569/~/m...
[3] https://portal.7thsense.one/user-guides/MC264-display-config...