Routers can cause lags and latency. Bypassing them always improves performance. Configure Windows PC or iPad device as WiFi Access Point (Hotspot) and connect to it before connecting spacedesk.
USB Tethering achieves the same result, in case your iPad supports it.
Please check the chapter “Performance Tuning” in the instruction manual: https://spacedesk.net/user-manual