IMO your latency probably has a lot to do with something or a combination of simethings in the following:
Your graphics rendering. Verify that both are using the same Windows Manager, using the same graphics components.
There may be a difference between Plasma and Gtk components, I haven’t researched this… only note that the DE you’re comparing use different graphical architectures. If you want to compare two DE using the same graphical components, you should compare KDE and LXQt or Gnome and XFCE.
KDE is well known for introducing unnecessary “decorations” by default. XFCE at least as set up by default by openSUSE maintainers is mostly lean with minimal graphical decorations and background services running. I’ve heard recent KDE push a lightweight, high performance configuration but haven’t looked into it.
As for networking… I doubt that has anything to do with your latency problems if you’re testing on the same hardware and using the same network connection for both DE. It’s implemented at its own layer in the OS and AFAIK should be exactly the same for both DE… although there are a few customizations for instance in how KDE integrates with Network Manager. But AFAIK those should be insignificant or irrelevant for your performance issues.