sbischoff-ai / pygase

A Python package that contains a high-performance, versatile UDP-based game server, client and network protocol with a simple API.
MIT License
43 stars 7 forks source link

Sleep seams necessary on server #11

Open manuelep opened 1 year ago

manuelep commented 1 year ago

https://github.com/sbischoff-ai/pygase/blob/0fc262f57201b26e6823826e455f3b1b891b379e/chase/server.py#L26

It seams in this line a minimal delay is necessary on my hardware. Adding something like the following fixed:

time.sleep(0.00015)

do you think there's a better solution??