For Multi Line Text
---
The same seems to be the case for listboxes and treeViews. The more entries they have, the slower they becomes.
Execute the following code in Eden Editor:
```
disableSerialization;
private _longestLineWidth = 0;
private _exampleString = "abcdefghijklmnopqrstuvxyz0134567890";
private _text = "";
for "_lines" from 1 to 4000 do
{
_lineText = _exampleString select [round random 35];
_text = _text + _lineText + endl;
};
private _display = findDisplay 313 createDisplay "RscDisplayEmpty";
private _group = _display ctrlCreate ["RscControlsGroup", -1];
private _edit = _display ctrlCreate ["RscEditMulti", -1,_group];
_group ctrlSetPosition [0,0,1,1];
_group ctrlCommit 0;
_edit ctrlSetPosition [0,0,1,2];
_edit ctrlSetBackgroundColor [0,0,0,1];
_edit ctrlSetFontHeight 0.03;
_edit ctrlSetText _text;
_edit ctrlSetPositionH ctrlTextHeight _edit;
_edit ctrlCommit 0;
```
In this example FPS drop from 60 to 6 for me
For CT_TREE, CT_LIST behaves the same
---
```
[] spawn
{
disableSerialization;
_display = findDisplay 313 createDisplay "RscDisplayEmpty";
_edit = _display ctrlCreate ["RscEdit", 645];
_edit ctrlSetPosition [0,0,1,0.04];
_edit ctrlSetBackgroundColor [0,0,0,1];
_edit ctrlCommit 0;
_tv = _display ctrlCreate ["RscTreeSearch", -1];
_tv ctrlSetFont "EtelkaMonospacePro";
_tv ctrlSetFontHeight 0.01;
_tv ctrlSetPosition [0,0.06,1,0.94];
_tv ctrlSetBackgroundColor [0,0,0,1];
_tv ctrlCommit 0;
_classes = "true" configClasses (configFile >> "CfgVehicles");
for "_i" from 0 to 5000 do
{
_tv tvAdd [[], configName selectRandom _classes];
};
};
```