Memory Usage

Blitz3D Forums/Blitz3D Beginners Area/Memory Usage

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

When I ran my mud project I started off with a memory usage of 1,200k according to task manager. When I connected with 1,000 players it went up to 3,296k. But when I disconnected all of them it stayed at 3,296. I'm running several subtypes withint p.player and was wondering if I have the type object in type player, should i delete the type object first, thent he player, or?

When i first start off the program i dim p.player(1000)
when i create a new player i do p(ucount)=new player
and when i delete the player, say player 10 is deleting I run a for/next loop so like:

for x=10 to ucount step 1
p(x)=p(x+1)
;and then delete the last user
delete p(ucount):ucount=ucount-1

Should I do this a faster way?