View Issue Details

IDProjectCategoryView StatusLast Update
0005388Multi Theft Auto : San AndreasScriptingpublic2011-03-28 13:11
Reporterkwksnd Assigned Toccw  
Status resolvedResolutionfixed 
Target Version1.0.5Fixed in Version1.0.5 
Summary0005388: projectiles can exist forever

if a scripted projectile is fired and continues off out of draw range, it will exist forever until the script is restarted.

eventualy this causes fps drop, and if it continues for too long eventualy you will be able to fire projectiles of anykind.

Steps To Reproduce

fire scripted projectiles out of draw range
then check to see if they still exist after some time

Additional Information

i discovered this when i noticed my fps dropping after using scripted projectiles for a while.

so i did some testing and confirmed projectiles that hit nothing and go off out of range continue to exist long after they had been used.

i confirmed this by adding a delay timer to destroy the element and watched for errors.

if the projectile hit an element and blew up, my destroyElement function would fail to find the element.
but if the projectile went out of draw range without hitting anything, the destroyElement function would find the projectile element and destroy it
no matter how long after the projectile was used.

TagsNo tags attached.



2010-06-14 01:46

administrator   ~~0011592

After some tests I noticed that Airbombs created far away never get cleaned up.

Issue History

Date Modified Username Field Change