Page 1 of 1

PostPosted: Sat Apr 19, 2003 1:51 pm
by darwin
This is strange - my game is running pretty good. Except that it slows down for some time and then getting fast again. This is pretty strange because it is really only a temprorary slowdown. I am using alot of local variables and somehow I am guessing it has something to do with the garbage collector of pocketC - by the Way - I am avoiding malloc calls whereever I can (only 3 Functions are calling this and I am really controlling that these are freed after using).
So what do you think??

PostPosted: Tue Apr 22, 2003 5:18 am
by joh.becker
malloc in PocketC is strange. Especially if you free a block that is not the last one then subsequent malloc gets very slow.
I removed all nested malloc.


PostPosted: Tue Apr 22, 2003 9:25 am
by darwin
That's why I rarely use it. Only the fileloader is using it (and the scapegeneration, but it is freed in the same function right after using it). The rest of the code is using hardcoded variables.