SA-MP Forums Archive
Problems with YSI latest version 2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems with YSI latest version 2 (/showthread.php?tid=661304)



Problems with YSI latest version 2 - GospodinX - 30.11.2018

Hi guys

Few months ago I'm post topic "Problems with YSI latest version" ; https://sampforum.blast.hk/showthread.php?tid=658140
I was said that I need 4-5 seconds to wait that my mode start.****** answer on it:
Quote:

YSI takes a while to start up because it is optimising itself basically. It runs a whole load of code in the beginning so that it doesn't need to run it later.

But now,i need to wait 4-5 minutes that my mode start.It's really too long.(Big problem is with test server which I restart very,very often.And I lose one half-hour in day just to wait that my mode start.It's boring.

My question is:What I can do?Maybe I do something wrong if I need to wait 4-5 minutes?(Also,when i try to put old version,it works nice..I don't need to wait,but i want to use latest version.Without latest version OnGameModeInit spent only 0.5 seconds(from profiler))

How I can improve it?How I can see what is not good in my script if I need to wait 4-5 minutes?

From YSI I use:
-y_iterators
-y_commands(YCMD)
-y_ini
-y_timers
-y_va



Profiler results,if it helps: (sort by worst total time;It's all function from YSI,I think..
http://prntscr.com/loyuhs

If it's true:OnGameModeInit needed 204.8 seconds (What is 3.4 minutes).

Thanks!


Re: Problems with YSI latest version 2 - GospodinX - 01.12.2018

Bump..(second page)