30.12.2018, 17:12
Hey!
Thats probably my last time posting this since I dont wanna spam it really.. basically what is happening is that I'm using XML Loader to open .map file, and from that map file I'm getting object, racepickup and spawnpoint coordinates (info).. now.. racepickups and spawnpoints load fine since there arent many of them, but objects take about 10-20seconds to load which is fine, but what I do not understand is why during that time it seems like server is freezed, you can move and stuff but you cannot type anything into chat.. whatever you type will appear after objects load.. so I need help with how to optimize it so that its gonna load objects but not completely freeze the server. Thanks for help !
https://pastebin.com/gEw9SQB2
p.s. I use the same code(script) for loading racepickups and spawnpoints
Thats probably my last time posting this since I dont wanna spam it really.. basically what is happening is that I'm using XML Loader to open .map file, and from that map file I'm getting object, racepickup and spawnpoint coordinates (info).. now.. racepickups and spawnpoints load fine since there arent many of them, but objects take about 10-20seconds to load which is fine, but what I do not understand is why during that time it seems like server is freezed, you can move and stuff but you cannot type anything into chat.. whatever you type will appear after objects load.. so I need help with how to optimize it so that its gonna load objects but not completely freeze the server. Thanks for help !
https://pastebin.com/gEw9SQB2
p.s. I use the same code(script) for loading racepickups and spawnpoints