Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better performing Tacview exporter? #195

Closed
shugamoe opened this issue Nov 2, 2022 · 2 comments
Closed

Better performing Tacview exporter? #195

shugamoe opened this issue Nov 2, 2022 · 2 comments

Comments

@shugamoe
Copy link

shugamoe commented Nov 2, 2022

I know there are certain DCS servers like Enigmas that don't use LotATC or Tacview server side for performance reasons, and I know that DCS-gRPC can help server performance by offloading expensive calculations. My initial thought is DCS-gRPC might not help improve server performance when used as the basis for unit position streaming/recording applications.

Presumably though, there are some expectations of improved performance with #131, so are there similar expectations if DCS-gRPC were used to create an alternate Tacview exporter?

@rurounijones
Copy link
Contributor

rurounijones commented Nov 9, 2022

There is nothing special about how DCS-gRPC does things that would make it any more efficient than Tacview or LotATC server in a direct comparison.

They all work the same way. Poll the server via lua to get unit information. This sucks and is not at all efficient but it is all that is available. There are some tricks that can be done to reduce per-frame impact (such as polling small groups at a time) which is, I believe, what Tacview does. The one thing that we do which is more "efficient" than Tacview is that we do not poll as often as it does which means we have a lower impact on servers.

We are not aiming to replace Tacview. What we are aiming for, however, is for DCS-gRPC to be good enough, provide enough APIs, and be open-source so that people feel confident switching their back-ends to DCS-gRPC so that the number of plugins that are doing the lua polling is reduced.

Currently a server running Tacview, DCS-gRPC and LotATC has three separate plugins doing that unit polling. If they all switched to DCS-gRPC then that reduces the load significantly.

Someone could definitely create a Tacview file writer client based on the data that DCS-gRPC exports (It is already being done in the LSO bot) and it would bring the benefit of allowing tacview files to be created without needing Tacview on the server itself, you could even create a proxy to support real-time telemetry. But there is nothing special about how DCS-gRPC is doing things that make it inherently more efficient than Tacview.

@shugamoe
Copy link
Author

Thank you so much for your detailed response and clearing up my understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants