29.12.2018, 17:32
Quote:
Thats how I convert my objects, pickups and spawnpoints..
Slowness is only on objects, since I tested only pickups and spawnpoints and they've converted in 0.5sec or less. https://pastebin.com/j1p4DvVk |
Also overhead at loading files if that plugin does not support operation on external thread (like MySQL database plugin do with threaded queries) or the repeated operation with open/close the file (which i think Y_INI handle it better)
Even i think that using a CSV format of the map objects and load each line with sscanf would be faster (note: still overhead on finding/opening the file.
Still 30000 objects loading wouldn't take a second, maybe you could optimize it up to only 10 seconds