MirrorNetworking / Mirror

#1 Open Source Unity Networking Library
https://mirror-networking.com
MIT License
5.25k stars 775 forks source link

fix(ThreadedTransport): sleep detection #3901

Closed miwarnec closed 2 months ago

miwarnec commented 2 months ago

optional feature: ThreadedTransport automatically detects if a device was put to sleep (i.e. phone/VR/etc.) after a configurable timeout, it then ends the worker thread gracefully.

this is important so we don't drain devices that were put to sleep, and may stay asleep for days.