FGAIS: Difference between revisions

Jump to navigation Jump to search
472 bytes added ,  30 October 2012
Line 39: Line 39:
=== Issues ===
=== Issues ===


Basically:
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!)

Navigation menu