Dogs Of War Vu

Network of Friends => Tacview => Topic started by: Asid on October 14, 2016, 08:02:15 PM

Title: DCS World new exporter
Post by: Asid on October 14, 2016, 08:02:15 PM
Secretly working on the new exporter for DCS World ;)

(http://www.tacview.net/rss/786301020049666048.jpg)
Title: Re: DCS World new exporter
Post by: Vyrtuoz on October 24, 2016, 04:46:52 PM
As announced a few days ago on Twitter, I have resumed my work on the new Tacview exporter for DCS World.

What have changed during the past 10 years?
What’s wrong with the current exporter?

The current LUA exporter is now 10 years old. Even if it is working fine, it needs a rejuvenation cure for the following reasons:
What about the new exporter?

The new exporter will be 100% made of C++. Which means that is it going to be as fast and powerful as possible is can be.

Feel free to post any remarks, questions and suggestions on this thread.

About DCS World export performance issue:

DCS World LoGetWorldObjects() currently takes about 20% of CPU. This is a bug which can only be fixed by ED dev team. There is nothing we can do on Tacview site do fix this performance issue. For example: This is the most important export function and we must call it at least once a frame to know what is going on. Because without it, it is not possible to know which objects have been created/deleted/updated.

With Tacview 1.5.1 you can check your DCS.log file after a mission to see by how much CPU Tacview LUA exporter and LoGetWorldObjects() are taking to export data.
For instance, they are respectively taking:

Code: [Select]
02995.954 INFO    LuaExport::LuaExportStart: [Tacview.UpdateLog] Profile Time=[30.0s] Frame Rate=[30.9 fps] w/o Export=[44.7 fps] DCS Ratio=[69.0%] Export Ratio=[31.0%]
02995.954 INFO    LuaExport::LuaExportStart: -------- Profiled Section -------- | CallCount | Ratio | Total |
02995.954 INFO    LuaExport::LuaExportStart: AddUpdateObjects(ballistic)        |       926 |  0.1% |  0.0% |
02995.954 INFO    LuaExport::LuaExportStart: AddUpdateObjects(units)            |       926 | 31.2% |  9.7%[/b] |
02995.954 INFO    LuaExport::LuaExportStart: LoGetWorldObjects(ballistic) [C++] |       926 |  0.4% |  0.1% |
02995.954 INFO    LuaExport::LuaExportStart: LoGetWorldObjects(units) [C++]     |       926 | 67.4% | 20.9% |
02995.954 INFO    LuaExport::LuaExportStart: RemoveObjects                      |       926 |  0.6% |  0.2% |