20,741
edits
(→Issues) |
(→Issues) |
||
| Line 39: | Line 39: | ||
=== Issues === | === Issues === | ||
At the moment, the fgais background thread will sleep until 60 seconds have passed, only then, will it start downloading/parsing/computing new data. However, by that time, the fgms main thread is already "starving", because it has no more data to send to the fgfs client - in other words, it has to wait until the worker thread has completed. We should be preparing a new set of data earlier than that. For now, a usable workaround would be to compute even more data and use a FIFO | |||
* we should *never* iterate through the whole AI list in the main thread *never* | * we should *never* iterate through the whole AI list in the main thread *never* | ||
* we definitely should not be doing that for each client (we do that now!) | * we definitely should not be doing that for each client (we do that now!) | ||