mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
speed up some debug functions by 99.99%
This commit is contained in:
parent
cb29f1a6c9
commit
6a0ca8590f
@ -1,15 +1,4 @@
|
||||
// by commy2
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_array", "_index"];
|
||||
|
||||
_array = [];
|
||||
|
||||
for "_index" from 0 to 10000 do {
|
||||
if (str (findDisplay _this displayCtrl _index) != "No control") then {
|
||||
diag_log text str (findDisplay _this displayCtrl _index);
|
||||
_array pushBack _index;
|
||||
};
|
||||
};
|
||||
|
||||
_array;
|
||||
[allControls findDisplay _this, {ctrlIDC _this}] call FUNC(map)
|
||||
|
@ -1,15 +1,4 @@
|
||||
// by commy2
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_array", "_index"];
|
||||
|
||||
_array = [];
|
||||
|
||||
for "_index" from 0 to 10000 do {
|
||||
if (str (findDisplay _index) != "No Display") then {
|
||||
diag_log text str findDisplay _index;
|
||||
_array pushBack _index;
|
||||
};
|
||||
};
|
||||
|
||||
_array;
|
||||
[allDisplays, {ctrlIDD _this}] call FUNC(map)
|
||||
|
Loading…
Reference in New Issue
Block a user