Bgl2Xml beta

#41
Hi all - back to the performance thing I'm afraid :eek:(
So I've found that if I run the GUI that comes with BGL2XML17 on a specific BGL file it takes about 1/2 second to generate the XML.
But if I run the GUI in BGL2XML_ALL (May 2018) on the same file it takes upwards of 10 seconds to produce the same output, so a massive drop in performance.
I'm baffled - can someone else out there do a similar comparison test and let me know what timings they get?
I'm using the following file in both tests:

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Scenery\0001\scenery\APX03120.bgl

Thanks for any input,

All the best,

Ian
 
#42
I've no idea what technology is used by BGL2XML but I downloaded the NetVer tool, extracted the XML from the test file and got the following results:-

PC #1 (BGL2XML17 - Win 7 64 bit - AV on, firewall on): .NET ver 4.5.2 - XML generated in 1 second
PC #2 (BGL2XML_ALL - no AV, no firewall): .NET ver 4.7.1 - XML generated in 10-14 seconds
PC #3 (BGL2XML_ALL - no AV, no firewall): .NET ver 4.7.2 - XML generated in 20-30 seconds

It could be a co-incidence but there does seem to be a correlation: the older the system the faster it runs.

I also tried swapping the DLLs for those shipped in BGL2XML17 (with the exception of jmSDELib.dll which caused BGL2XML_GUI to fail). Even with the older DLLs I'm still getting a much slower performance despite hardware. I'm thinking it could be related to the O/S or runtime versions?

For info, PC #3 is far and away the best machine - faster CPU, loads more memory, 64 bit O/S and plenty of disk space. I'm still baffled :eek:)

Regards

Ian

ps I just noticed that the XML file doesn't appear until the very last second - I guess all processing is done in memory and the file is committed only when the memory object is complete? Using Task manager I can see that during that 20-30 second lag I have at least 50% CPU spare and I'm only using 1.49 of 16gb RAM on PC #3.
 
Last edited:

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#43
So what is it you want to know about Bgl2Xml? What version of .NET it is compiled for? Why a GU
 
#44
Hi Jon,

That'd be great - the .NET version would be a great start, thanks! (And are there any other dependencies?)

I guess I'm mainly hoping that some other users of BGL2XML might report back how it runs on their systems and if they've noticed any kind of performance hit since the BGL2XML_ALL release. I'm struggling to know how to debug it and it seems odd that one version can run so much more quickly on the same machine than another, and why the same version has such wildly differing performances of different machines. Any extra info would be gratefully received!

Cheers!

Ian
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#45
Can you confirm if you are using the command line version or the GUI version? Please give me the exact versions of each along with the timestamp and size of the bgl2xml executable(s)

I can tell you that the latest versions of the apps are compiled against .NET 4.0 (versions 1.8). Prior the that they were compiled against .NET 3.5 versions 1.7 and earlier
 
Last edited:
#46
Thanks Jon, really appreciate your input.

My batch program shells a CMD.bat file which contains a script to launch BGL2XML. I've tried it set to various compatibility mode and with/without admin but get the same performance. Here’s a typical example:-

D:
cd \
cd "D:\#Data\BGL2XML_110518"
bgl2xml.exe "D:\Program Files\Lockheed Martin\Prepar3D v4\Scenery\0000\scenery\APX07060.bgl" "D:\#Data\Temp\APX07060.xml" "No"


The file versions in D:\#Data\BGL2XML_110518 are as follows:-

File Name / File Ver / Product Ver / File Date / Size / Size on Disk
Bgl2Xml.exe / 1.7.0.0 / 1.7 / 14 May 2018 / 12,240 / 12,288
Bgl2Xml_GUI.exe / 1.8.0.0 / 1.8 / 14 May 2018 / 85,880 / 61,440



For info, my PC spec is as follows:-

AMD Athlon II X2 3Gb CPU
8 Gb RAM
Windows 7 Professional (64 bit)

Dot NET Versions (from ASoft >NET Version Detector) are as follows....

<32Bit>
2.0.50727.8784
->C:\Windows\Microsoft.NET\Framework\v2.0.50727
4.7.3062.0
->C:\Windows\Microsoft.NET\Framework\v4.0.30319


<64Bit>
2.0.50727.8784
->C:\Windows\Microsoft.NET\Framework64\v2.0.50727
4.7.3062.0
->C:\Windows\Microsoft.NET\Framework64\v4.0.30319


< Installed .NET Frameworks >
.NET FW 2.0 SP 2 (CLR:2.0)
.NET FW 3.0 SP 2 (CLR:2.0)
.NET FW 3.5 SP 1 (CLR:2.0)
.NET FW 4.6.2 General release (CLR:4.0)
.NET FW 4.7 General release (CLR:4.0)
.NET FW 4.7.1 General release (CLR:4.0)
.NET FW 4.7.2 General release (CLR:4.0)


< Installed Updates >
Microsoft .NET Framework 4 Client Profile
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
Microsoft .NET Framework 4 Extended
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
KB2468871
KB2468871v2
KB2478063
KB2533523
KB2544514
KB2600211
KB2600217
Microsoft .NET Framework 4.5
KB2729460
KB2737083
KB2742613
KB2745582
KB2748645
KB2750147
KB2756203
KB2759112
KB2783808
KB2789648
KB2794055
KB2803754
KB2804582
KB2805221
KB2805226
KB2805290
KB2822218
KB2823493
KB2828841
KB2835622
KB2858725
KB2861193
KB2861208
KB2862063
KB2872778
KB2885201
KB2889889
KB2894849
KB2894854
KB2898864
KB2898869
KB2901118
KB2901126
KB2901983
KB2908383
KB2925382
KB2931368
KB2936388
KB2937676
KB2938782
KB2954853
KB2969355
KB3006566
KB3033093
KB3045561
KB3072311
KB3074233
KB3074554
KB3076093
KB3083186
KB3086153
KB3088517
KB3088957
KB3095098
KB3095338
KB3098001
KB3098786
KB3099851
KB3099874
KB3102433
KB3120241
KB3120734
KB3122661
KB3127233
KB3136000
KB3142037
KB3143693
KB3151798
KB3164025
KB3183734
KB3186495
KB4020210
KB4033341
KB4038114
Microsoft .NET Framework 4.7.2
KB4087364 Update for Microsoft .NET Framework 4.7.2 (KB4087364)


< Installed Languages 3.0>
English - United States
< Installed Languages 3.5.x>
English - United States
< Installed Languages 4.x>
English - United States



Once again, many thanks for you looking at this for me, it's very much appreciated,

Regards

Ian
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#47
Well I ran two different performance profilers on BglXml_GUI.exe and the files you suggest. I am getting immediate results without any apparent time delay. I will check the code in case it is calling something that consumes time but not sure what it is.

In the GUI display do you have Save Models checked or unchecked?

1549731492186.png


See if checking/unchecking it makes any difference to performance times
 
Last edited:
#48
SOLVED!!

Thanks so much for your help and input Jon. After you said it was running fine on your system I wondered if something buried in my was killing it.

Turns out I had a backup agent from EaseUS\Todo that starts itself when the system boots, then sits around in the background doing goodness knows what. Anyway, it seems to murder file and network access and as soon as I killed it BGL2XML started to fly. For the record, the process (on my machine at least) is:-

C:\Program Files (x86)\EaseUS\Todo Backup\Bin\Agent.exe

Thanks again Jon - your help very much appreciated.

Regards

Ian
 
Top