Large memory usage during SetObjectMaterial(Text) -
SDraw - 29.07.2013
So, when I was testing my 3D speedometer, I faced problems of the computer. But I ignored it...
But today, when I've been trying to find the problem, I've seen this:
More than 700 megabytes! Does it mean that changing for object can't be free out from memory? If so, this is a really big problem..
SA-MP version: 0.3x R1-2
Re: Large memory usage during SetObjectMaterial(Text) -
cessil - 29.07.2013
what script are you using?
Re: Large memory usage during SetObjectMaterial(Text) -
SDraw - 29.07.2013
Quote:
Originally Posted by cessil
what script are you using?
|
http://gist.github.com/SDraw/6099922
As you see, only updating text on object...And what happens after some time! O_O
Re: Large memory usage during SetObjectMaterial(Text) -
GWMPT - 29.07.2013
You're using it inside OnPlayerUpdate, legit.
Re: Large memory usage during SetObjectMaterial(Text) -
SDraw - 29.07.2013
Quote:
Originally Posted by Kikito
You're using it inside OnPlayerUpdate, legit.
|
No sence where it is. Or in OPU, or in timer. I've tested it too...
AW: Large memory usage during SetObjectMaterial(Text) -
NaS - 29.07.2013
I noticed that too, I have a bestlist on my server where the best players in the DM are listed. After some time the RAM usage gets higher and higher. Until now I did not know it could be because of SetObjectMaterialText.
Will do some tests.
Re: Large memory usage during SetObjectMaterial(Text) -
Pottus - 30.07.2013
I know you can only update the material text 16 times on a regular CreateObject() before the object needs to be destroyed recreated but I noticed with your script Player objects with material text can be continually updated without requiring deletion of the object. I'm not saying that is what is happen but it might give some more insight of the problem.
Re: Large memory usage during SetObjectMaterial(Text) -
SDraw - 30.07.2013
Quote:
Originally Posted by [uL]Pottus
I know you can only update the material text 16 times on a regular CreateObject() before the object needs to be destroyed recreated
|
But why hasn't this been written anywhere? Even on Wiki there is no info about this
Re: Large memory usage during SetObjectMaterial(Text) -
SDraw - 04.08.2013
Quote:
Originally Posted by [uL]Pottus
I know you can only update the material text 16 times on a regular CreateObject() before the object needs to be destroyed recreated but I noticed with your script Player objects with material text can be continually updated without requiring deletion of the object. I'm not saying that is what is happen but it might give some more insight of the problem.
|
I've tried your supposition. No luck. Still same. Now this is really serious...
Re: Large memory usage during SetObjectMaterial(Text) -
Pottus - 05.08.2013
I've looked at it to and yes it's doing the same thing for me every time I update the text it adds about 200kb to memory obviously a memory leak.