Try commenting out the update proc. And then the stat one, that'll narrow down your problem. If neither seems to work, your problem is somewhere else.
|
DemonicK wrote:
Well at least I know my problem is somewhere else now.. Breakthrough..though I don't know what exactly it is yet, I noticed that not only is it slow to type in dreamseeker, the icons all move slower, (icon states and etc.) So that got my mind thinking..and I pressed ctrl+alt+del Yep you bet, its using huge amounts of RAM. Dreamseeker was using about 350,000 K |
I didn't, as I said earlier, my partner coder had the source code for about 2 weeks.
He has done a lot but doesn't know exactly when this problem occurred. He lists all the updates he does but not the date he did them, just the planned release date of the update. So now I have to try and look through everything he updated in the list and try and find out what could be causing the RAM to go that high.. Any ideas what I should look for? |
mob/proc/Updates() ^ Thats the updates list...None of them really look like they could be the cause for huge RAM usage... but maybe I'm overlooking something. |
Ok well thanks to some help I narrowed down the cause to it being a problem with a turf.
Tried deleting all mobs on the map...lag stayed. Tried deleting all objs...same.. Tried deleting all areas (1.5 million areas 0_o)..no luck.. Tried it with a blank map..problem solved.. So that means its a turf. I think I'm getting closer. |
FIXED WOOH
Infinite loop with a turf...tsk tsk tsk..Im going to have to scold my partner for this. House14 That was supposed to replace a rest verb ..making life even lazier and easier for players. Well too damn bad. Thanks everyone for your help. |
Make sure:
1) There is no universally defined and initialized list for turfs (or even most turfs). If you have over 2^16-1 lists, you'd be breaking the limit. 2) Make sure there are no procs under /turf that are called a lot. 3) If you have a weather or something loop, then check that out. 4) It may still be the general /area type, as you cannot remove areas from your map. Don't count those out as a possibility. |
I'll go through the source and do that, just to reduce any remaining excess CPU usage, but as far as the game working, it does. =D
Btw would Entered put strain on the CPU if its used for a lot of turfs (like grass). Because I think Kaio, my partner, has a sound effects fettish... >_> So stepping on the grass or water or tiles all make different sound effects, and he has a coded loop (not infinite) but that everyone hears the sound fainter the farther away they are. I doubt that can be good.., but thoughts please. |
Update and Stat.
and even though its supposed to be called several times per tick..its called(due to the lag) 1 time every 3 seconds..roughly.