speed up some debug functions by 99.99%

This commit is contained in:
commy2 2015-03-26 02:26:09 +01:00
parent cb29f1a6c9
commit 6a0ca8590f
2 changed files with 2 additions and 24 deletions

View File

@ -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)

View File

@ -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)