SA-MP Forums Archive
Lags Problam :\ - 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: Lags Problam :\ (/showthread.php?tid=333792)



Lags Problam :\ - tal_peretz - 12.04.2012

What can makes lags problam ? I made many textdraw maybe that's the problam? there is a streamer for TextDraw?


Thanks for all


Re: Lags Problam :\ - ViniBorn - 12.04.2012

The problem only happened after adding the TextDraws?


Re: Lags Problam :\ - tal_peretz - 12.04.2012

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
The problem only happened after adding the TextDraws?
I don't know.. I think not, I can't know because the TextDraw created in many situation ..


Re: Lags Problam :\ - ViniBorn - 12.04.2012

I don't think they are the problem ...


Re: Lags Problam :\ - BlackWolf120 - 12.04.2012

search for the profiler plugin to analyse your script more in depth.
Also you can check out ******`s optimazions topic.


Kind regards, wolf.


Re: Lags Problam :\ - tal_peretz - 12.04.2012

Quote:
Originally Posted by BlackWolf120
Посмотреть сообщение
search for the profiler plugin to analyse your script more in depth.
Also you can check out ******`s optimazions topic.


Kind regards, wolf.
I downloaded profiler plugin, when does it written ?

and I didn't find the ****** optimazions ..


Re: Lags Problam :\ - tal_peretz - 12.04.2012

I have TextDraw that create himself in OnPlayerUpdate Each time.. maybe because of that ?


Re: Lags Problam :\ - Ash. - 12.04.2012

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
I have TextDraw that create himself in OnPlayerUpdate Each time.. maybe because of that ?
You're creating TextDraw's in OnPlayerUpdate? OnPlayerUpdate is almost 100 times every second, so perhaps that's a bad idea?


Re: Lags Problam :\ - [LoF]Zak - 12.04.2012

Quote:
Originally Posted by funky1234
Посмотреть сообщение
You're creating TextDraw's in OnPlayerUpdate? OnPlayerUpdate is almost 100 times every second, so perhaps that's a bad idea?
Where did you get that number from? I'm sure it's a maximum of 32 per second, depending on what the player is doing.


Re: Lags Problam :\ - Ash. - 12.04.2012

Quote:
Originally Posted by [LoF]Zak
Посмотреть сообщение
Where did you get that number from? I'm sure it's a maximum of 32 per second, depending on what the player is doing.
Have you tried testing that?

Edit: Hang on. I made a typo in my first post. I meant to put nearly 100 times in ten seconds haha! Oops...

I apologise.