R3vo/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Feature|important|The content of this page was generated by script. Manual edits might get lost.}}
{{TOC|side}}
If you have ever wondered why you scenario is running so badly, performance profiling is the way to find it out. It allows you to find bottlenecks and slow code by capturing a "slow" frame.
The captured data can then be viewed and analysed.
 
== Getting the correct Version ==
Profiling is enabled in the following {{arma3}} versions
* arma3profiling_x64.exe - '''Part of the Performance Profiling Build'''
* arma3diag_x64.exe - '''Part of the Development Build'''
 
Read [[Arma_3: Steam Branches]] for a guide on how to access these branches.
 
{{Feature|informative|It is recommended to use the '''Performance Profiling Build''' (arma3profiling_x64.exe) for performance profiling because:
* Has tools that might not make it into development build
* Has all the profiling related commands that ''arma3diag_x64.exe'' has
* Its performance is closer to the default ''arma3_x64.exe''}}
 
== Frame Capturing ==
There are several commands that allow you to capture a frame.
* [[diag_captureFrame]]
* [[diag_captureSlowFrame]]
* [[diag_logSlowFrame]] - not available in Arma 3 :(
* [[diag_captureFrameToFile]]
In most cases you do not want to capture any or all frames, you just want to capture "slow" frames. A slow frame is a frame that takes longer than the average frame and slows down the game.
 
== How to Use ==
# Run a mission
# Execute a scripted command <sqf inline>diag_captureSlowFrame ["total", 0.3];</sqf> using any means ([[Arma 3: Debug Console|Debug Console]], mission radio trigger...)
# Once a slow frame is detected, a window will open
# In the window you will be able to browse a lot of performance-related data, which can be interesting
# To export the gathered information for sharing with others:
## Select Main Thread (if not selected yet)
## Press the Copy button
## Open an external text editor
## Paste the text into a new file
## Save the file
 
== Capture Frame UI ==
[[File: arma3-capture frame ui overview.png]]
 
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
# {{Wiki|TODO}}
 
== External Viewer ==
* chrome://tracing
* https://ui.perfetto.dev/
 
[[File:Performance_Profiling_04.png|thumb|diag_captureFrame sample output with custom subtree]]
== Creating Your Own Subtree ==
 
When Profiling Per-Frame Eventhandlers (PFH), [[diag_captureFrame]] only shows one blob called siFEH that contains all PFH's so you can't see what part of that is caused by your PFH.<br>
You can create your own subtree inside siFEH by wrapping your function call inside a [[isNil]] CODE statement like this:<br>
Turn your old call which may look like this:
<sqf>
addMissionEventHandler ["EachFrame", {
call myPFHFunction
}];
</sqf>
 
Into something like this:
<sqf>
addMissionEventHandler ["EachFrame", {
isNil { call myPFHFunction } // isNil creates the subtree
}];
</sqf>
 
Now when you run [[diag_captureFrame]] inside of siPFH you will have a subtree called gsEva and behind that you can see the first line of code inside the isNil statement.<br>
It will only show a part of the first line of that code so you should put something descriptive into the [[isNil]] statement.<br>
You can use the same to create a subtree for any function you like. This will also work inside [[Scheduler#Scheduled_Environment|Scheduled]] ([[spawn]]ed) scripts. <br>
But using this method to "subtree" a function with return values requires a little bit of trickery to get the return value out.
 
 
== Notes ==
 
* 0.3 is a time in second used to determine what duration of a frame you consider abnormal, and first such frame will be captured.
* 0.3 is definitely something you should not see in a normal game.
* If you do not capture any frames with 0.3, try lowering it to 0.2 or 0.1.
* If it triggers too early, before the main slowdown happens, increase it to a higher value, e.g. 1.0.
 
== Scopes ==
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
! Variable Name !! Data Type !! Default Value !! Locality !! Description
! Technical Name !! Descriptive Name !! Description
|-
| {{hl|spe_ifs_pairingtriesperbattery}} || [[Scalar]] || <sqf>5</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_targetblacklist}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_progresscallwheninvalid}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| Main
|  
|  
|-
|-
| {{hl|spe_ifs_planes_ind}} || [[Array]] || <sqf>["SPE_P47",
| total
1]</sqf> || {{Icon|globalEffect}} || TBD
|  
|  
|-
|-
| {{hl|spe_ifs_allprojectiles_ger}} || [[Array]] || <sqf>["",
| fsPHa
"spe_sc250_timed_short_bomb",
|  
"spe_sc250_timed_short_bomb_submunition",
|  
"spe_sc50_timed_short_bomb",
"spe_sc50_timed_short_bomb_submunition",
"spe_s_105l28_gr38",
"spe_b_20x82_he",
"spe_b_13x64_hei",
"spe_sh_81_he",
"spe_sh_fa_mle_1932_he"]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_emergencycallbaseinterval}} || [[Array]] || <sqf>[[30,
| winMs
45,
|  
60,
|  
90,
45],
[30,
45,
60,
90,
45],
[30,
45,
60,
90,
45],
[30,
45,
60,
90,
45]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_calledsupportproviders}} || [[Array]] || <sqf>[[[],
| dlcSim
[],
|  
[]],
|  
[[],
[],
[]],
[[],
[],
[]],
[[],
[],
[]]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_rdtable}} || [[Array]] || <sqf>[[["spe_grw278_1"],
| steamCbk
"spe_grw278_1",
|  
[["Single1",
|  
[[42,
577],
2]],
["Single2",
[[71,
997],
4]],
["Single3",
[[102,
1425],
6]],
["Single4",
[[142,
1991],
7]],
["Single5",
[[164,
2309],
8]],
["Single6",
[[194,
2722],
9]],
["Single7",
[[220,
3092],
10]]]],
[["spe_lefh18"],
"spe_lefh18_l28",
[["Single1",
[[344,
1941],
10]],
["Single2",
[[772,
4369],
15]],
["Single3",
[[1610,
9116],
20]]]],
[["spe_sdkfz251_2",
"spe_st_sdkfz251_2"],
"spe_grwr34",
[["Single1",
[[116,
1263],
6]],
["Single2",
[[170,
1854],
8]],
["Single3",
[[222,
2421],
10]]]],
[["spe_sdkfz251_w40",
"spe_st_sdkfz251_w40"],
"spe_wurfrahmen_40",
[["Burst1",
[[400,
530],
5]],
["Burst2",
[[530,
670],
6]],
["Burst3",
[[670,
870],
7]],
["Burst4",
[[870,
1145],
8]],
["Burst5",
[[1145,
1490],
10]],
["Burst6",
[[1490,
1930],
15]]]],
[["spe_m1_81"],
"spe_m1_81",
[["Single1",
[[42,
577],
2]],
["Single2",
[[71,
997],
4]],
["Single3",
[[102,
1425],
6]],
["Single4",
[[142,
1991],
7]],
["Single5",
[[164,
2309],
8]],
["Single6",
[[194,
2722],
9]],
["Single7",
[[220,
3092],
10]]]],
[["spe_m4a1_t34_calliope"],
"spe_t34_l60",
[["Burst1",
[[430,
560],
5]],
["Burst2",
[[560,
730],
6]],
["Burst3",
[[730,
950],
7]],
["Burst4",
[[950,
1260],
8]],
["Burst5",
[[1260,
1650],
9]],
["Burst6",
[[1650,
2190],
10]],
["Burst7",
[[2190,
2910],
12]],
["Burst8",
[[2910,
3560],
12]],
["Burst9",
[[3560,
4230],
15]]]]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_debugswitch_systemchat}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| input
|  
|  
|-
|-
| {{hl|spe_ifs_dsavailability_side}} || [[Array]] || <sqf>[WEST,
| wSimu
EAST,
|  
GUER]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_knowntargets_aa_e}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| docSim
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_aa}} || [[Array]] || <sqf>[[],
| wSimDisp
[],
|  
[],
|  
[]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_priorityartycalls}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| MFDManager
|  
|  
|-
|-
| {{hl|spe_ifs_tankdefaulttemptation}} || [[Array]] || <sqf>[[0,
| wDisp
6,
|  
12],
|  
[0,
6,
12],
[0,
6,
12],
[0,
6,
12]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_cas_horriblemode}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| EventPrcs
|  
|  
|-
|-
| {{hl|spe_ifs_requestedheavyartyeta}} || [[Scalar]] || <sqf>30</sqf> || {{Icon|globalEffect}} || TBD
| gsEva
|  
|  
|-
|-
| {{hl|spe_ifs_firedshells}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| gbFrm
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_aa_o}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| memLo
|  
|  
|-
|-
| {{hl|spe_ifs_allarty}} || [[Array]] || <sqf>["spe_grw278_1",
| siScr
"spe_lefh18",
|  
"spe_m1_81",
|  
"spe_m4a1_t34_calliope",
"spe_grw278_1",
"spe_m1_81",
"spe_m4a1_t34_calliope"]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_knowntargets_aa_r}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| scrVM
|  
|  
|-
|-
| {{hl|spe_ifs_safetydistance_heavyarty}} || [[Array]] || <sqf>[100,
| wsSet
100,
|  
100,
|  
100]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_requestedmortareta}} || [[Scalar]] || <sqf>15</sqf> || {{Icon|globalEffect}} || TBD
| sLand
|  
|  
|-
|-
| {{hl|spe_ifs_allowadvancedhints}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| simSW
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_aa_w}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| cLWObj
|  
|  
|-
|-
| {{hl|spe_ifs_requestedmortargunsamount}} || [[Array]] || <sqf>[3,
| oTemp
3,
|  
3,
|  
3]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_limitshotstocurrentmagazinerounds}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| FPres
|  
|  
|-
|-
| {{hl|spe_ifs_acc}} || [[Scalar]] || <sqf>2</sqf> || {{Icon|globalEffect}} || TBD
| waitSnd
|  
|  
|-
|-
| {{hl|spe_ifs_requestedheavyartyamount}} || [[Scalar]] || <sqf>6</sqf> || {{Icon|globalEffect}} || TBD
| job
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_ind_ambient}} || [[Array]] || <sqf>[[1,
| sound
0.25,
|  
3,
|  
0.75],
[0,
0.1,
1,
0.15,
2,
0.25,
3,
0.5],
[0,
0.15,
1,
0.2,
2,
0.25,
3,
0.4],
[0,
0.9,
1,
0.1,
2,
0,
3,
0]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_aadefaulttemptation}} || [[Array]] || <sqf>[[8,
| ssAdv
8,
|  
12],
|  
[8,
8,
12],
[8,
8,
12],
[8,
8,
12]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_temporarydebugmarkers}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| snCmt
|  
|  
|-
|-
| {{hl|spe_ifs_incomingnotificationrange}} || [[Scalar]] || <sqf>300</sqf> || {{Icon|globalEffect}} || TBD
| play
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_civ_emergency}} || [[Array]] || <sqf>[[0,
| ARTCpl
1],
|  
[0,
|  
1]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_rocket}} || [[Array]] || <sqf>["b_mbt_01_mlrs_f"]</sqf> || {{Icon|globalEffect}} || TBD
| rendr
|  
|  
|-
|-
| {{hl|spe_ifs_amount}} || [[Scalar]] || <sqf>6</sqf> || {{Icon|globalEffect}} || TBD
| drwVi
|  
|  
|-
|-
| {{hl|spe_ifs_cas_donttrackplayersincadet}} || [[Array]] || <sqf>[EAST,
| txHLi
WEST,
|  
GUER,
|  
CIV]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_casweaponrytable_civ_requested}} || [[Array]] || <sqf>[[0,
| txPMM
1],
|  
[0,
|  
1],
[0,
1],
[0,
1],
[0,
1]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_amountmultiplier}} || [[Array]] || <sqf>[[1,
| dsr2t
1,
|  
1],
|  
[0.33,
0.5,
1]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_aacapableassets}} || [[Array]] || <sqf>["spe_flak_30", "spe_flak_38", "spe_us_m16_halftrack", "spe_m45_quadmount"]</sqf> || {{Icon|globalEffect}} || TBD
| wPrep
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_soft_e}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| dPr
|  
|  
|-
|-
| {{hl|spe_ifs_iowamode}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| fmiRun
|  
|  
|-
|-
| {{hl|spe_ifs_ds_providingtime}} || [[Scalar]] || <sqf>30</sqf> || {{Icon|globalEffect}} || TBD
| fmiWait
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_soft_o}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| fmiMDrw
|  
|  
|-
|-
| {{hl|spe_ifs_infantrydefaulttemptation}} || [[Array]] || <sqf>[[12, 0, 0], [12, 0, 0], [12, 0, 0], [12, 0, 0]]</sqf> || {{Icon|globalEffect}} || TBD
| fmiSIns
|  
|  
|-
|-
| {{hl|spe_ifs_calledsupportspermanent}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| wPrepFtr
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_soft_r}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| clPrp
|  
|  
|-
|-
| {{hl|spe_ifs_requestedmortarspread}} || [[Scalar]] || <sqf>100</sqf> || {{Icon|globalEffect}} || TBD
| oPrep
|  
|  
|-
|-
| {{hl|spe_ifs_mapcenter}} || [[Array]] || <sqf>[6144,
| sceAC
6144]</sqf> || {{Icon|globalEffect}} || TBD
|  
|  
|-
|-
| {{hl|spe_ifs_casactivity}} || [[Array]] || <sqf>
| oSplt
[
|  
  [
|  
    0,
    60,
    300,
    0,
    0,
    [],
    [],
    0
  ],
  [
    0.1,
    60,
    300,
    1,
    2,
    [
      "SPE_FW190F8",
      1
    ],
    [],
    0
  ],
  [
    0.25,
    10,
    300,
    1,
    -1,
    [
      "SPE_P47",
      1
    ],
    [],
    0
  ],
  [
    0,
    60,
    300,
    0,
    0,
    [],
    [],
    0
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_mort_spawndirection}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| sceACTA
|  
|  
|-
|-
| {{hl|spe_ifs_spmortar}} || [[Array]] || <sqf>["o_mbt_02_arty_f", "b_mbt_01_arty_f"]</sqf> || {{Icon|globalEffect}} || TBD
| sceACPrx
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_soft_w}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| lodUL
|  
|  
|-
|-
| {{hl|spe_ifs_cas_aimerrorspread}} || [[Array]] || <sqf>[[0, 0.6, 1], [0, 0, 1]]</sqf> || {{Icon|globalEffect}} || TBD
| PrxObj
|  
|  
|-
|-
| {{hl|spe_ifs_fototargetmaxdistances}} || [[Array]] || <sqf>[50, 150, 250]</sqf> || {{Icon|globalEffect}} || TBD
| manAn
|  
|  
|-
|-
| {{hl|spe_ifs_worthyinfantryradius}} || [[Array]] || <sqf>
| ppdOT
[
|  
  [
|  
    100,
    150,
    25
  ],
  [
    100,
    150,
    25
  ],
  [
    100,
    150,
    25
  ],
  [
    100,
    150,
    25
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_dsradius}} || [[Scalar]] || <sqf>10</sqf> || {{Icon|globalEffect}} || TBD
| flProx
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_armored}} || [[Array]] || <sqf>[[], [], [], []]</sqf> || {{Icon|globalEffect}} || TBD
| PrxObjTransport
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_west_ambient}} || [[Array]] || <sqf>
| oSoSL
[
|  
  [
|  
    2,
    0.1,
    3,
    0.9
  ],
  [
    0,
    0.1,
    1,
    0.15,
    2,
    0.25,
    3,
    0.5
  ],
  [
    0,
    0.15,
    1,
    0.2,
    2,
    0.25,
    3,
    0.4
  ],
  [
    0,
    0.5,
    1,
    0.5,
    2,
    0,
    3,
    0
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_knowntargets_infantry_e}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| oSoJE
|  
|  
|-
|-
| {{hl|spe_ifs_cas_aimerror}} || [[Scalar]] || <sqf>25</sqf> || {{Icon|globalEffect}} || TBD
| oSoJE1
|  
|  
|-
|-
| {{hl|spe_ifs_nocontrol}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| oSoJE2
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_soft}} || [[Array]] || <sqf>[[], [], [], []]</sqf> || {{Icon|globalEffect}} || TBD
| oSo1OFOv
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_infantry_o}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| oSo1ON
|  
|  
|-
|-
| {{hl|spe_ifs_enemieseast}} || [[Array]] || <sqf>[1]</sqf> || {{Icon|globalEffect}} || TBD
| sceCLsHSH
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_infantry_r}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| prpAMCt
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_infantry_w}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| oSoJEw
|  
|  
|-
|-
| {{hl|spe_ifs_safetydistance_mortararty}} || [[Array]] || <sqf>[25, 25, 25, 25]</sqf> || {{Icon|globalEffect}} || TBD
| pDrwFNP
|  
|  
|-
|-
| {{hl|spe_ifs_ds_checkproviderlos}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| oSoSLu
|  
|  
|-
|-
| {{hl|spe_ifs_worthyinfantrytarget}} || [[Array]] || <sqf>
| lPGCl
[
|  
  [
|  
    2,
    4,
    0
  ],
  [
    2,
    4,
    0
  ],
  [
    2,
    4,
    0
  ],
  [
    2,
    4,
    0
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_acceptedradiobackpacks}} || [[Array]] || <sqf>["b_spe_ger_radio", "b_spe_us_radio", "b_spe_us_radio_alt", "b_spe_us_radio_packboard", "b_spe_us_radio_packboard_light"]</sqf> || {{Icon|globalEffect}} || TBD
| pdDrw
|  
|  
|-
|-
| {{hl|spe_ifs_knownenemiesmarkers}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| lDGnd
|  
|  
|-
|-
| {{hl|spe_ifs_initcomplete}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| lGSMM
|  
|  
|-
|-
| {{hl|spe_ifs_enemiesother}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| recCB
|  
|  
|-
|-
| {{hl|spe_ifs_casactive}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| mtPmj
|  
|  
|-
|-
| {{hl|spe_ifs_casavailability_side}} || [[Array]] || <sqf>[WEST, EAST, GUER]</sqf> || {{Icon|globalEffect}} || TBD
| cuDrw
|  
|  
|-
|-
| {{hl|spe_ifs_add_other}} || [[Array]] || <sqf>
| prepT
[
|  
  [
|  
    [
      "spe_grw278_1"
    ],
    [
      "SPE_8Rnd_81mm_FA_Mle_1932_HE",
      "",
      "",
      "SPE_8Rnd_81mm_FA_Mle_1932_Smoke",
      "SPE_8Rnd_81mm_FA_Mle_1932_Illu"
    ]
  ],
  [
    [
      "spe_lefh18"
    ],
    [
      "SPE_20x_Shell_105L28_Gr38_HE",
      "",
      "",
      "SPE_20x_Shell_105L28_Gr38_NB",
      ""
    ]
  ],
  [
    [
      "spe_m1_81"
    ],
    [
      "SPE_8Rnd_81mmHE_M1_M43A1",
      "SPE_8Rnd_81mmWP_M1_M57",
      "",
      "SPE_8rnd_81mm_M1_M57_SmokeShell",
      ""
    ]
  ],
  [
    [
      "spe_m4a1_t34_calliope"
    ],
    [
      "SPE_60Rnd_M8",
      "",
      "",
      "",
      ""
    ]
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_onephase}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| drwCB
|  
|  
|-
|-
| {{hl|spe_ifs_requestedsupportavailabilitydelay}} || [[Array]] || <sqf>
| oPasD
[
|  
  [
|  
    60,
    180,
    60
  ],
  [
    60,
    180,
    60
  ],
  [
    60,
    180,
    60
  ],
  [
    60,
    180,
    60
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_debug}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| o1Drw
|  
|  
|-
|-
| {{hl|spe_ifs_areablacklist}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| lckDnBf
|  
|  
|-
|-
| {{hl|spe_ifs_lightartillery}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| prpTx
|  
|  
|-
|-
| {{hl|spe_ifs_allbullets}} || [[Array]] || <sqf>["", "spe_b_127x99_api_plane", "spe_b_20x82_he", "spe_b_13x64_hei"]</sqf> || {{Icon|globalEffect}} || TBD
| inst
|  
|  
|-
|-
| {{hl|spe_ifs_incomingmarkrange}} || [[Scalar]] || <sqf>1000</sqf> || {{Icon|globalEffect}} || TBD
| stpSctnTL
|  
|  
|-
|-
| {{hl|spe_ifs_planes_east}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| o1ShV
|  
|  
|-
|-
| {{hl|spe_ifs_requestedheavyartygunsamount}} || [[Array]] || <sqf>[1, 3, 1, 1]</sqf> || {{Icon|globalEffect}} || TBD
| scSVI
|  
|  
|-
|-
| {{hl|spe_ifs_checkedpotentialartyclasses}} || [[Array]] || <sqf>["spe_grw278_1", "spe_m1_81", "spe_m4a1_t34_calliope"]</sqf> || {{Icon|globalEffect}} || TBD
| oPas3
|  
|  
|-
|-
| {{hl|spe_ifs_calledsupportsui}} || [[Scalar]] || <sqf>1</sqf> || {{Icon|globalEffect}} || TBD
| sssmC
|  
|  
|-
|-
| {{hl|spe_ifs_spottinground_called}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| sbDrw
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_ind_emergency}} || [[Array]] || <sqf>
| aniMt
[
|  
  [
|  
    1,
    0.25,
    3,
    0.75
  ],
  [
    1,
    0.75,
    3,
    0.25
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_interval}} || [[Scalar]] || <sqf>2</sqf> || {{Icon|globalEffect}} || TBD
| ppSSSM
|  
|  
|-
|-
| {{hl|spe_ifs_add_rocket}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| drwROM
|  
|  
|-
|-
| {{hl|spe_ifs_emergencycalloveruseinterval}} || [[Array]] || <sqf>
| drwIn
[
|  
  [
|  
    30,
    45,
    60,
    90,
    45
  ],
  [
    30,
    45,
    60,
    90,
    45
  ],
  [
    30,
    45,
    60,
    90,
    45
  ],
  [
    30,
    45,
    60,
    90,
    45
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_cas_spawndirection}} || [[Array]] || <sqf>[180, 180]</sqf> || {{Icon|globalEffect}} || TBD
| wDraw
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_west_emergency}} || [[Array]] || <sqf>[[3, 1], [2, 0.75, 3, 0.25]]</sqf> || {{Icon|globalEffect}} || TBD
| lDPGT
|  
|  
|-
|-
| {{hl|spe_ifs_svstart}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| oSDrw
|  
|  
|-
|-
| {{hl|spe_ifs_2phwithoutfo}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| oPasO
|  
|  
|-
|-
| {{hl|spe_ifs_cas_originobjects}} || [[Array]] || <sqf>[[], [], [], []]</sqf> || {{Icon|globalEffect}} || TBD
| lDSky
|  
|  
|-
|-
| {{hl|spe_ifs_aibombhelper_disable}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| swRdr
|  
|  
|-
|-
| {{hl|spe_ifs_requestedmortarammo}} || [[Array]] || <sqf>["SPE_8Rnd_81mmHE_M1_M43A1", "SPE_8Rnd_81mm_FA_Mle_1932_HE", "SPE_8Rnd_81mmHE_M1_M43A1", "SPE_8Rnd_81mmHE_M1_M43A1"]</sqf> || {{Icon|globalEffect}} || TBD
| ppSWDD
|  
|  
|-
|-
| {{hl|spe_ifs_spottinground}} || [[Array]] || <sqf>[EAST,
| swRdGeom
WEST,
|  
GUER]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_mortar}} || [[Array]] || <sqf>["i_mortar_01_f", "o_mortar_01_f", "b_g_mortar_01_f", "b_mortar_01_f"]</sqf> || {{Icon|globalEffect}} || TBD
| swRdGeomVB
|  
|  
|-
|-
| {{hl|spe_ifs_foaccgain}} || [[Scalar]] || <sqf>0.2</sqf> || {{Icon|globalEffect}} || TBD
| swFillV
|  
|  
|-
|-
| {{hl|spe_ifs_enemiesresistance}} || [[Array]] || <sqf>[1]</sqf> || {{Icon|globalEffect}} || TBD
| oPasA
|  
|  
|-
|-
| {{hl|spe_ifs_addammo}} || [[Scalar]] || <sqf>1</sqf> || {{Icon|globalEffect}} || TBD
| ppShrpn
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_ind_requested}} || [[Array]] || <sqf>
| lDWat
[
|  
  [
|  
    0,
    0.15,
    1,
    0.2,
    2,
    0.25,
    3,
    0.4
  ],
  [
    1,
    0.25,
    3,
    0.75
  ],
  [
    0,
    0.1,
    1,
    0.15,
    2,
    0.25,
    3,
    0.5
  ],
  [
    0,
    0.15,
    1,
    0.2,
    2,
    0.25,
    3,
    0.4
  ],
  [
    0,
    0.9,
    1,
    0.1,
    2,
    0,
    3,
    0
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_emergencyfireimmunity}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| oPas2
|  
|  
|-
|-
| {{hl|spe_ifs_allprojectiles_us}} || [[Array]] || <sqf>
| o2Drw
[
|  
  "",
|  
  "spe_r_m8",
  "spe_r_m8_a3_module",
  "spe_r_m8_a3",
  "spe_r_m8_fly",
  "spe_us_500lb_timed_short_bomb",
  "spe_us_500lb_timed_short_bomb_submunition",
  "spe_b_127x99_api_plane",
  "spe_sh_m43a1_81_he",
  "spe_sh_m43a1_81_he_submunition"
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_staticdefaulttemptation}} || [[Array]] || <sqf>
| oPas5
[
|  
  [
|  
    5,
    5,
    5
  ],
  [
    5,
    5,
    5
  ],
  [
    5,
    5,
    5
  ],
  [
    5,
    5,
    5
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_publicfunctions}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| o5Drw
|  
|  
|-
|-
| {{hl|spe_ifs_wpclasses}} || [[Array]] || <sqf>["spe_m1_81"]</sqf> || {{Icon|globalEffect}} || TBD
| EDraw3D
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_west_requested}} || [[Array]] || <sqf>
| MEventPrcs
[
|  
  [
|  
    0,
    0.15,
    1,
    0.2,
    2,
    0.25,
    3,
    0.4
  ],
  [
    2,
    0.1,
    3,
    0.9
  ],
  [
    0,
    0.1,
    1,
    0.15,
    2,
    0.25,
    3,
    0.5
  ],
  [
    0,
    0.15,
    1,
    0.2,
    2,
    0.25,
    3,
    0.4
  ],
  [
    0,
    0.5,
    1,
    0.5,
    2,
    0,
    3,
    0
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_counterbatteryfireispriority}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| cLGSY
|  
|  
|-
|-
| {{hl|spe_ifs_shouldblacklistblockrequestedsupport}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| stpAll
|  
|  
|-
|-
| {{hl|spe_ifs_targetmaxspeeds}} || [[Array]] || <sqf>[10, 30]</sqf> || {{Icon|globalEffect}} || TBD
| stpCB
|  
|  
|-
|-
| {{hl|spe_ifs_fo}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| stpTxtCS
|  
|  
|-
|-
| {{hl|spe_ifs_art_spawndirection}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| stpUAVsCS
|  
|  
|-
|-
| {{hl|spe_ifs_ds_checkfriendlyfire}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| ppHDRCL
|  
|  
|-
|-
| {{hl|spe_ifs_add_spmortar}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| ppGSB
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_east_ambient}} || [[Array]] || <sqf>
| ppDOF
[
|  
  [
|  
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_ds_providerblacklist}} || [[Array]] || <sqf>["spe_m4a1_t34_calliope"]</sqf> || {{Icon|globalEffect}} || TBD
| ppGlwNw
|  
|  
|-
|-
| {{hl|spe_ifs_requestedheavyartyspread}} || [[Scalar]] || <sqf>150</sqf> || {{Icon|globalEffect}} || TBD
| ppGLu
|  
|  
|-
|-
| {{hl|spe_ifs_magazinesammodata}} || [[HashMap]] || <sqf>
| stpCBUpd
[
|  
  [
|  
    "SPE_8rnd_81mm_M1_M57_SmokeShell",
    [
      0.2,
      0,
      ,
      "shotshell"
    ]
  ],
  [
    "SPE_8Rnd_81mm_FA_Mle_1932_Illu",
    [
      0.2,
      2,
bin\config.bin/CfgAmmo/SPE_Sh_FA_Mle_1932_ILLU/lightColor,
      "shotilluminating"
    ]
  ],
  [
    "SPE_8Rnd_81mmWP_M1_M57",
    [
      3.5,
      2,
      ,
      "shotshell"
    ]
  ],
  [
    "SPE_8Rnd_81mm_FA_Mle_1932_Smoke",
    [
      0.2,
      0,
      ,
      "shotshell"
    ]
  ],
  [
    "SPE_8Rnd_81mmHE_M1_M43A1",
    [
      7.9
    ]
  ],
  [
    "SPE_60Rnd_M8",
    [
      19
    ]
  ],
  [
    "SPE_8Rnd_81mm_FA_Mle_1932_HE",
    [
      7.9
    ]
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_knowntargets_infantry}} || [[Array]] || <sqf>[[],
| ppQWt
[],
|  
[],
|  
[]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_monogamy}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| ppCMAA
|  
|  
|-
|-
| {{hl|spe_ifs_ds_interval}} || [[Scalar]] || <sqf>10</sqf> || {{Icon|globalEffect}} || TBD
| hudDr
|  
|  
|-
|-
| {{hl|spe_ifs_safetydistance_cas}} || [[Array]] || <sqf>[50, 50, 50, 50]</sqf> || {{Icon|globalEffect}} || TBD
| 3DEN_UI_OnDraw
|  
|  
|-
|-
| {{hl|spe_ifs_cas_currentplanes}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| 3DEN_PrepareDraw
|  
|  
|-
|-
| {{hl|spe_ifs_enemieswest}} || [[Array]] || <sqf>[0, 2]</sqf> || {{Icon|globalEffect}} || TBD
| clObL
|  
|  
|-
|-
| {{hl|spe_ifs_other}} || [[Array]] || <sqf>
| 3DEN_Drawing
[
|  
  [
|  
    [
      "spe_grw278_1"
    ],
    [
      "SPE_8Rnd_81mm_FA_Mle_1932_HE",
      "",
      "",
      "SPE_8Rnd_81mm_FA_Mle_1932_Smoke",
      "SPE_8Rnd_81mm_FA_Mle_1932_Illu"
    ]
  ],
  [
    [
      "spe_lefh18"
    ],
    [
      "SPE_20x_Shell_105L28_Gr38_HE",
      "",
      "",
      "SPE_20x_Shell_105L28_Gr38_NB",
      ""
    ]
  ],
  [
    [
      "spe_m1_81"
    ],
    [
      "SPE_8Rnd_81mmHE_M1_M43A1",
      "SPE_8Rnd_81mmWP_M1_M57",
      "",
      "SPE_8rnd_81mm_M1_M57_SmokeShell",
      ""
    ]
  ],
  [
    [
      "spe_m4a1_t34_calliope"
    ],
    [
      "SPE_60Rnd_M8",
      "",
      "",
      "",
      ""
    ]
  ],
  [
    [
      "spe_grw278_1"
    ],
    [
      "SPE_8Rnd_81mm_FA_Mle_1932_HE",
      "",
      "",
      "",
      "SPE_8Rnd_81mm_FA_Mle_1932_Illu"
    ]
  ],
  [
    [
      "spe_m1_81"
    ],
    [
      "SPE_8Rnd_81mmHE_M1_M43A1",
      "",
      "",
      "",
      ""
    ]
  ],
  [
    [
      "spe_m4a1_t34_calliope"
    ],
    [
      "SPE_60Rnd_M8",
      "",
      "",
      "",
      ""
    ]
  ],
  [
    [
      "spe_grw278_1"
    ],
    [
      "SPE_8Rnd_81mm_FA_Mle_1932_HE",
      "",
      "",
      "",
      "SPE_8Rnd_81mm_FA_Mle_1932_Illu"
    ]
  ],
  [
    [
      "spe_m1_81"
    ],
    [
      "SPE_8Rnd_81mmHE_M1_M43A1",
      "",
      "",
      "",
      ""
    ]
  ],
  [
    [
      "spe_m4a1_t34_calliope"
    ],
    [
      "SPE_60Rnd_M8",
      "",
      "",
      "",
      ""
    ]
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_knowntargets_arty}} || [[Array]] || <sqf>[[],
| stpTxtGS
[],
|  
[],
|  
[]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_artyavailability_side}} || [[Array]] || <sqf>[WEST,
| txt2D
EAST,
|  
GUER]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_knowntargets_armored_e}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| mapDr
|  
|  
|-
|-
| {{hl|spe_ifs_enemysides}} || [[Array]] || <sqf>[[1],
| mapSeaAndNormal
[0,
|  
2],
|  
[1],
[]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_dsmaxrange}} || [[Scalar]] || <sqf>500</sqf> || {{Icon|globalEffect}} || TBD
| mapPM
|  
|  
|-
|-
| {{hl|spe_ifs_sides}} || [[Array]] || <sqf>[EAST,
| lndPM
WEST,
|  
GUER]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_immunefx_ringing}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| MapObjectsPrepTask
|  
|  
|-
|-
| {{hl|spe_ifs_allowmortarsagainsttanks}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| mapSeaAndNormalDraw
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_armored_o}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| mapCntDraw
|  
|  
|-
|-
| {{hl|spe_ifs_requestedmortaramount}} || [[Scalar]] || <sqf>6</sqf> || {{Icon|globalEffect}} || TBD
| mapObjectsDraw
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_armored_r}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| mapForestShape
|  
|  
|-
|-
| {{hl|spe_ifs_mortarclasses}} || [[Array]] || <sqf>["spe_m1_81",
| mapGrid
"spe_grw278_1"]</sqf> || {{Icon|globalEffect}} || TBD
|  
|  
|-
|-
| {{hl|spe_ais_ifs_debugswitch}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| drwFn
|  
|  
|-
|-
| {{hl|spe_ifs_emergencycasdelay}} || [[Scalar]] || <sqf>5</sqf> || {{Icon|globalEffect}} || TBD
| dtTot
|  
|  
|-
|-
| {{hl|spe_ifs_knowntargets_armored_w}} || [[HashMap]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| wFram
|  
|  
|-
|-
| {{hl|spe_ifs_planedefaulttemptation}} || [[Array]] || <sqf>
| 3dSwp
[
|  
  [
|  
    15,
    15,
    15
  ],
  [
    15,
    15,
    15
  ],
  [
    15,
    15,
    15
  ],
  [
    15,
    15,
    15
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_availablecalls}} || [[Array]] || <sqf>
| preLd
[
|  
  [
|  
    -1,
    -1,
    -1
  ],
  [
    -1,
    -1,
    -1
  ],
  [
    -1,
    -1,
    -1
  ],
  [
    -1,
    -1,
    -1
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_priokeys}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| preLV
|  
|  
|-
|-
| {{hl|spe_ifs_add_mortar}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| actObjPrld
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_east_emergency}} || [[Array]] || <sqf>[[0,
| hashChk
1],
|  
[0,
|  
1]]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_requestedheavyartyammo}} || [[Array]] || <sqf>
| sSim
[
|  
  "SPE_60Rnd_M8",
|  
  "SPE_20x_Shell_105L28_Gr38_HE",
  "SPE_60Rnd_M8",
  "SPE_60Rnd_M8"
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_pendingartycalls}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| enfWorkShort
|  
|  
|-
|-
| {{hl|spe_ifs_emergencyartydelay}} || [[Scalar]] || <sqf>5</sqf> || {{Icon|globalEffect}} || TBD
| updAttPos
|  
|  
|-
|-
| {{hl|spe_ifs_prioritycastargets}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| oSo1AN
|  
|  
|-
|-
| {{hl|spe_ifs_planes_west}} || [[Array]] || <sqf>["SPE_FW190F8",
| prpAMCf
1]</sqf> || {{Icon|globalEffect}} || TBD
|  
|  
|-
|-
| {{hl|spe_ifs_newpriorityartycalls}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| prpAMCSlt
|  
|  
|-
|-
| {{hl|spe_ifs_targetreportingdelay}} || [[Array]] || <sqf>
| prpSDM
[
|  
  [
|  
    30,
    30,
    30,
    30
  ],
  [
    30,
    30,
    30,
    30
  ],
  [
    30,
    30,
    30,
    30
  ],
  [
    30,
    30,
    30,
    30
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_cas_spawndistance}} || [[Array]] || <sqf>[3000,
| locL
3000,
|  
3000]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_foclass}} || [[Array]] || <sqf>
| mapSeaAndNormalWork
[
|  
  "spe_us_rangers_radioman",
|  
  "spe_us_rangers_sniper",
  "spe_us_radioman",
  "spe_us_sniper",
  "spe_fr_sniper",
  "spe_fr_radioman",
  "spe_ger_radioman",
  "spe_ger_scout_assist_squadlead",
  "spe_ger_scout_ober_grenadier",
  "spe_ger_scout_lieutenant",
  "spe_ger_scout_mgunner2",
  "spe_ger_scout_mgunner",
  "spe_ger_scout_ober_rifleman",
  "spe_ger_scout_rifleman",
  "spe_ger_scout_squadlead",
  "spe_ger_scout_sniper",
  "spe_sturmtrooper_radioman",
  "spe_sturmtrooper_sniper"
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_cas_speedlimit}} || [[Scalar]] || <sqf>400</sqf> || {{Icon|globalEffect}} || TBD
| mapObjectsPrepWork
|  
|  
|-
|-
| {{hl|spe_ifs_batterymarkers}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| drwIdxPrm
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_civ_ambient}} || [[Array]] || <sqf>
| oSo3
[
|  
  [
|  
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_vehicledefaulttemptation}} || [[Array]] || <sqf>
| lsCVB
[
|  
  [
|  
    3,
    3,
    2
  ],
  [
    3,
    3,
    2
  ],
  [
    3,
    3,
    2
  ],
  [
    3,
    3,
    2
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_allprojectiles}} || [[Array]] || <sqf>
| oSo5
[
|  
  "",
|  
  "spe_r_m8",
  "spe_r_m8_a3_module",
  "spe_r_m8_a3",
  "spe_r_m8_fly",
  "spe_us_500lb_timed_short_bomb",
  "spe_us_500lb_timed_short_bomb_submunition",
  "spe_sc250_timed_short_bomb",
  "spe_sc250_timed_short_bomb_submunition",
  "spe_sc50_timed_short_bomb",
  "spe_sc50_timed_short_bomb_submunition",
  "spe_s_105l28_gr38",
  "spe_b_127x99_api_plane",
  "spe_b_20x82_he",
  "spe_b_13x64_hei",
  "spe_sh_81_he",
  "spe_sh_m43a1_81_he",
  "spe_sh_m43a1_81_he_submunition",
  "spe_sh_fa_mle_1932_he"
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_pause}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| oSo2CL
|  
|  
|-
|-
| {{hl|spe_ifs_heavyartillery}} || [[Array]] || <sqf>[R Alpha 1-1:3,
| oSo1AF
R Alpha 1-2:3,
|  
R Alpha 1-3:3]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
|-
| {{hl|spe_ifs_shellview}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
| Visualize
|  
|  
|-
|-
| {{hl|spe_ifs_emergencyfireactive}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| visul
|  
|  
|-
|-
| {{hl|spe_ifs_active}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| txMLo
|  
|  
|-
|-
| {{hl|spe_ifs_casweaponrytable_east_requested}} || [[Array]] || <sqf>[
| oSo2Srt
  [
|  
    0,
|  
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ],
  [
    0,
    1
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_cadetdifficulty}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
| oSoSdw
|  
|  
|-
|-
| {{hl|spe_ifs_artyavtransmitterdst}} || [[Array]] || <sqf>[50,
| prpAMCbsi
25,
|  
5,
|  
5,
5]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_lightartyclasses}} || [[Array]] || <sqf>["spe_m1_81",
| prpAMCp
"spe_grw278_1"]</sqf> || {{Icon|globalEffect}} || TBD
|  
|  
|-
|-
| {{hl|spe_ifs_requestedheavyartygunsrof}} || [[Array]] || <sqf>[0.5,
| Render
5,
|  
0.5,
|  
0.5]</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| {{hl|spe_ifs_pendingcascalls}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| bgD3D
|  
|  
|-
|-
| {{hl|spe_ifs_planes_civ}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
| stpTxtVS
|-
|  
| {{hl|spe_ifs_newprioritycascalls}} || [[Array]] || <sqf>[]</sqf> || {{Icon|globalEffect}} || TBD
|  
|-
| {{hl|spe_ifs_artyactive}} || [[Boolean]] || <sqf>true</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_heavyartyclasses}} || [[Array]] || <sqf>["spe_lefh18",
"spe_m4a1_t34_calliope"]</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_pendingcalls_logging}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_emergencycallslimit}} || [[Array]] || <sqf>
[
  [
    -1,
    5,
    3,
    1,
    3
  ],
  [
    -1,
    5,
    3,
    1,
    3
  ],
  [
    -1,
    5,
    3,
    1,
    3
  ],
  [
    -1,
    5,
    3,
    1,
    3
  ]
]</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_requestedmortargunsrof}} || [[Array]] || <sqf>[2,
2,
2,
2]</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_artyavailability_specific}} || [[Array]] || <sqf>
[
"_unit getVariable ['SPE_IFS_Transmitter', false]",
"(vehicle _unit) getVariable ['SPE_IFS_Transmitter', false]",
"_unit isEqualTo (leader _unit)",
"((toLower (backpack _unit)) in SPE_IFS_AcceptedRadioBackpacks)",
"[_unit] call SPE_fnc_IFS_hasRadio",
"(vehicle _unit) isKindOf 'Tank_F'",
"((crew (vehicle _unit)) findIf {((_x getVariable ['SPE_IFS_Transmitter', false]) or {((toLower (backpack _x)) in SPE_IFS_AcceptedRadioBackpacks) or {[_x] call SPE_fnc_IFS_hasRadio}})} >= 0)",
"((_unit nearEntities [['Tank_F'], ((vehicle _unit) getVariable ['SPE_IFS_ArtyAvTransmitterDst', SPE_IFS_ArtyAvTransmitterDst]) select (missionNamespace getVariable ['SPE_CDA_currentDifficulty', difficulty])]) findIf {((side _unit) getFriend (side _x)) >= 0.6}) >= 0",
"((_unit nearEntities [['CAManBase'], ((vehicle _unit) getVariable ['SPE_IFS_ArtyAvTransmitterDst', SPE_IFS_ArtyAvTransmitterDst]) select (missionNamespace getVariable ['SPE_CDA_currentDifficulty',
difficulty])]) findIf {(_x isEqualTo (leader _unit)) or (((toLower (backpack _x)) in SPE_IFS_AcceptedRadioBackpacks) and {(((side _unit) getFriend (side _x)) >= 0.6) and {not ((side _x) in [civilian, sideFriendly, sideLogic])}})}) >= 0",
"((_unit nearEntities [['CAManBase', 'LandVehicle'],
((vehicle _unit) getVariable ['SPE_IFS_ArtyAvTransmitterDst', SPE_IFS_ArtyAvTransmitterDst]) select (missionNamespace getVariable ['SPE_CDA_currentDifficulty', difficulty])]) findIf {(_x getVariable ['SPE_IFS_Transmitter',
false]) and {(((side _unit) getFriend (side _x)) >= 0.6) and {not ((side _x) in [civilian, sideFriendly, sideLogic])}}}) >= 0"
]</sqf> || {{Icon|globalEffect}} || TBD
|-
| {{hl|spe_ifs_debugdeep}} || [[Boolean]] || <sqf>false</sqf> || {{Icon|globalEffect}} || TBD
|-
|-
| ppHBAOPlus
|
|
|}
|}


<!-- [[Category: Spearhead 1944]] -->
<sqf>
private _ctrlTV = ctrlparent (_this select 0) displayCtrl 101;
 
private _export = "{| class=""wikitable sortable"""  + endl + "|-" + endl;
_export = _export + "! Technical Name !! Descriptive Name !! Description";
 
private _fnc_logChilden =
{
    params ["_path"];
 
    for "_i" from 0 to ((_ctrlTV tvCount _path) - 1) do
    {
        private _text = _ctrlTV tvText (_path + [_i]);
        _text = _text splitString " " select 0;
 
        if !(_text in _export) then
        {
            _export = _export + endl + "|-" + endl + "| " + _text + endl + "| " + endl + "| ";
        };
 
        if (_ctrlTV tvCount (_path + [_i]) > 0 ) then
        {
            [_path + [_i]] call _fnc_logChilden;
        };
    };
};
 
[[]] call _fnc_logChilden;
 
copyToClipboard (_export + endl + "|}" + endl);
</sqf>
 
== See Also ==
 
* [[Code Optimisation]]
* [[Mission Optimisation]]
 
 
[[Category:Arma Scripting Tutorials]]

Latest revision as of 18:23, 4 November 2024

If you have ever wondered why you scenario is running so badly, performance profiling is the way to find it out. It allows you to find bottlenecks and slow code by capturing a "slow" frame. The captured data can then be viewed and analysed.

Getting the correct Version

Profiling is enabled in the following Arma 3 versions

  • arma3profiling_x64.exe - Part of the Performance Profiling Build
  • arma3diag_x64.exe - Part of the Development Build

Read Arma_3: Steam Branches for a guide on how to access these branches.

It is recommended to use the Performance Profiling Build (arma3profiling_x64.exe) for performance profiling because:
  • Has tools that might not make it into development build
  • Has all the profiling related commands that arma3diag_x64.exe has
  • Its performance is closer to the default arma3_x64.exe

Frame Capturing

There are several commands that allow you to capture a frame.

In most cases you do not want to capture any or all frames, you just want to capture "slow" frames. A slow frame is a frame that takes longer than the average frame and slows down the game.

How to Use

  1. Run a mission
  2. Execute a scripted command diag_captureSlowFrame ["total", 0.3]; using any means (Debug Console, mission radio trigger...)
  3. Once a slow frame is detected, a window will open
  4. In the window you will be able to browse a lot of performance-related data, which can be interesting
  5. To export the gathered information for sharing with others:
    1. Select Main Thread (if not selected yet)
    2. Press the Copy button
    3. Open an external text editor
    4. Paste the text into a new file
    5. Save the file

Capture Frame UI

arma3-capture frame ui overview.png

  1. 🚧
    TODO: this must be updated.
  2. 🚧
    TODO: this must be updated.
  3. 🚧
    TODO: this must be updated.
  4. 🚧
    TODO: this must be updated.
  5. 🚧
    TODO: this must be updated.
  6. 🚧
    TODO: this must be updated.
  7. 🚧
    TODO: this must be updated.
  8. 🚧
    TODO: this must be updated.
  9. 🚧
    TODO: this must be updated.

External Viewer

diag_captureFrame sample output with custom subtree

Creating Your Own Subtree

When Profiling Per-Frame Eventhandlers (PFH), diag_captureFrame only shows one blob called siFEH that contains all PFH's so you can't see what part of that is caused by your PFH.
You can create your own subtree inside siFEH by wrapping your function call inside a isNil CODE statement like this:
Turn your old call which may look like this:

addMissionEventHandler ["EachFrame", { call myPFHFunction }];

Into something like this:

addMissionEventHandler ["EachFrame", { isNil { call myPFHFunction } // isNil creates the subtree }];

Now when you run diag_captureFrame inside of siPFH you will have a subtree called gsEva and behind that you can see the first line of code inside the isNil statement.
It will only show a part of the first line of that code so you should put something descriptive into the isNil statement.
You can use the same to create a subtree for any function you like. This will also work inside Scheduled (spawned) scripts.
But using this method to "subtree" a function with return values requires a little bit of trickery to get the return value out.


Notes

  • 0.3 is a time in second used to determine what duration of a frame you consider abnormal, and first such frame will be captured.
  • 0.3 is definitely something you should not see in a normal game.
  • If you do not capture any frames with 0.3, try lowering it to 0.2 or 0.1.
  • If it triggers too early, before the main slowdown happens, increase it to a higher value, e.g. 1.0.

Scopes

Technical Name Descriptive Name Description
Main
total
fsPHa
winMs
dlcSim
steamCbk
input
wSimu
docSim
wSimDisp
MFDManager
wDisp
EventPrcs
gsEva
gbFrm
memLo
siScr
scrVM
wsSet
sLand
simSW
cLWObj
oTemp
FPres
waitSnd
job
sound
ssAdv
snCmt
play
ARTCpl
rendr
drwVi
txHLi
txPMM
dsr2t
wPrep
dPr
fmiRun
fmiWait
fmiMDrw
fmiSIns
wPrepFtr
clPrp
oPrep
sceAC
oSplt
sceACTA
sceACPrx
lodUL
PrxObj
manAn
ppdOT
flProx
PrxObjTransport
oSoSL
oSoJE
oSoJE1
oSoJE2
oSo1OFOv
oSo1ON
sceCLsHSH
prpAMCt
oSoJEw
pDrwFNP
oSoSLu
lPGCl
pdDrw
lDGnd
lGSMM
recCB
mtPmj
cuDrw
prepT
drwCB
oPasD
o1Drw
lckDnBf
prpTx
inst
stpSctnTL
o1ShV
scSVI
oPas3
sssmC
sbDrw
aniMt
ppSSSM
drwROM
drwIn
wDraw
lDPGT
oSDrw
oPasO
lDSky
swRdr
ppSWDD
swRdGeom
swRdGeomVB
swFillV
oPasA
ppShrpn
lDWat
oPas2
o2Drw
oPas5
o5Drw
EDraw3D
MEventPrcs
cLGSY
stpAll
stpCB
stpTxtCS
stpUAVsCS
ppHDRCL
ppGSB
ppDOF
ppGlwNw
ppGLu
stpCBUpd
ppQWt
ppCMAA
hudDr
3DEN_UI_OnDraw
3DEN_PrepareDraw
clObL
3DEN_Drawing
stpTxtGS
txt2D
mapDr
mapSeaAndNormal
mapPM
lndPM
MapObjectsPrepTask
mapSeaAndNormalDraw
mapCntDraw
mapObjectsDraw
mapForestShape
mapGrid
drwFn
dtTot
wFram
3dSwp
preLd
preLV
actObjPrld
hashChk
sSim
enfWorkShort
updAttPos
oSo1AN
prpAMCf
prpAMCSlt
prpSDM
locL
mapSeaAndNormalWork
mapObjectsPrepWork
drwIdxPrm
oSo3
lsCVB
oSo5
oSo2CL
oSo1AF
Visualize
visul
txMLo
oSo2Srt
oSoSdw
prpAMCbsi
prpAMCp
Render
bgD3D
stpTxtVS
ppHBAOPlus

private _ctrlTV = ctrlparent (_this select 0) displayCtrl 101; private _export = "{| class=""wikitable sortable""" + endl + "|-" + endl; _export = _export + "! Technical Name !! Descriptive Name !! Description"; private _fnc_logChilden = { params ["_path"]; for "_i" from 0 to ((_ctrlTV tvCount _path) - 1) do { private _text = _ctrlTV tvText (_path + [_i]); _text = _text splitString " " select 0; if !(_text in _export) then { _export = _export + endl + "|-" + endl + "| " + _text + endl + "| " + endl + "| "; }; if (_ctrlTV tvCount (_path + [_i]) > 0 ) then { [_path + [_i]] call _fnc_logChilden; }; }; }; [[]] call _fnc_logChilden; copyToClipboard (_export + endl + "|}" + endl);

See Also