SA-MP Forums Archive
750 CreatePlayerObject and 100 player connected = 90% Usage CPU - 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: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU (/showthread.php?tid=538426)



750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

Hello,
As the title says
In my server is 750 CreatePlayerObject and 100 player connected. CPU usage is 90%.
If i delete all CreatePlayerObject. CPU usage is 20% and 100 players are still connected.
Is this normal? Or do something set (settings) that CPU usage is not 90%?

Thanks for any help.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - JM_Millers - 21.09.2014

D'you use SetObjectMaterial or SetObjectMaterialText?


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

Yes i use 100 objects with SetObjectMaterialText.
But, If I delete all SetPlayerObjectMaterialText, CPU usage still 90%


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - Pottus - 21.09.2014

Sounds like your server is a complete piece of junk you should consider upgrading.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

CPU 4x2.4GHz (Q6600) is a complete piece of junk?
It's not a junk. If I delete all CreatePlayerObject, CPU is 20%


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - JM_Millers - 21.09.2014

Quote:

But, If I delete all SetPlayerObjectMaterialText, CPU usage still 90%

And what about SetObjectMaterialText


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

Quote:
Originally Posted by JM_Millers
Посмотреть сообщение
And what about SetObjectMaterialText
I tried to use CreateObject instead CreatePlayerObject and it works! CPU is 20%. But I use a total of 1,500 objects. I have a map in the middle to separate into two halves (750 and 750 objects). But CreateObject is the limit 1000. how to solve it?


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - hossa - 21.09.2014

Using streamer.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

Quote:
Originally Posted by hossa
Посмотреть сообщение
Using streamer.
Yes it is a solution. But I'm trying to find better solutions than the streamer.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - ATomas - 21.09.2014

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
Streamer is the best solution though, I recently started using it for a project (GM) I'm planning on releasing later this month.
I hope the streamer not have to use. I'll have to set up a small view distance to display little CreatePlayerObject. To minimize CPU
But thanks all.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - JM_Millers - 21.09.2014

Quote:
Originally Posted by ATomas
Посмотреть сообщение
Yes it is a solution. But I'm trying to find better solutions than the streamer.
There isn't better way. A lot of scripters use streamer


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - hossa - 21.09.2014

Quote:
Originally Posted by ATomas
Посмотреть сообщение
I hope the streamer not have to use. I'll have to set up a small view distance to display little CreatePlayerObject. To minimize CPU
But thanks all.
Streamer is your only option when it comes to having 1,000+ objects
Upgrade the server, That's an option.


Re: 750 CreatePlayerObject and 100 player connected = 90% Usage CPU - Pottus - 21.09.2014

Quote:
Originally Posted by ATomas
Посмотреть сообщение
I hope the streamer not have to use. I'll have to set up a small view distance to display little CreatePlayerObject. To minimize CPU
But thanks all.
The streamer is a must have it is the standard.