Read canvas image by HTTP: Difference between revisions

Jump to navigation Jump to search
Line 176: Line 176:
</gallery>
</gallery>


== Status (10/2016) ==
== Status (1/2019) ==
{{Note|In its current form, the streaming capability that is part of the original code has been disabled, i.e. is not available currently <ref>https://forum.flightgear.org/viewtopic.php?f=71&p=297716#p297716</ref>}}
This feature was merged into the official 2018.3.1 release. It works so far. However, there are latencies and the solution isn't efficient. Just creating the PNG image from OSG takes up to 100ms.
This feature was created based on version 2016.3.1 (the screenshots were actually taken by applying the patches to 2016.4). It works so far. However, there are latencies and this solution isn't efficient. Just creating the PNG image from OSG takes up to 100ms.
For the time being, this should still be considered a "proof-of-concept" that may go through more iterations of optmizations. Integrating it into 2018.3.1 makes it possible to explore a number of opportunities to optimize the whole thing for different use-cases and solicit community feedback. Special attention might be required with situations where the canvas and/or the connection are shut down, but also to support [[Reset & re-init]] without causing a race  condition.
For the time being, this should be considered - i.e. a "proof-of-concept" that may go through several iterations before this gets reviewed/integrated, but sharing this patch now makes it possible to also explore a number of opportunities to optimize the whole thing for different use-cases and solicit community feedback.


Also, the streaming capability of the original implementation hasn't been retained, so that this must be restored. However, this needs to be carefully done, to handle synchronization of worker threads (i.e. image compression), primarily to deal with situations where the canvas and/or the connection are shut down, but also to support [[Reset & re-init]] without causing a race condition.
{{Note|In its current form, the streaming capability <ref>https://forum.flightgear.org/viewtopic.php?f=71&p=297716#p297716</ref> is available but might overburden the flightgear process, depending on the number of canvases displayed. Its recommended not to use the streaming feature but to refresh the canvas from the browser. If any instability of FlightGear occurs, the remote canvas feature should be disabled for checking whether it is the reason.
  }}


== Patches ==
== Patches ==
183

edits

Navigation menu