PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: NemeziS on 14 March, 2005, 18:55:51

Title: Trivia memory usage
Post by: NemeziS on 14 March, 2005, 18:55:51
Hi, great scripters!

I have a question. I noticed that my trivia game uses nearly

2100 kb   - memory usage

and

2600 kb   - garbage collector

while other scripts use from 50 kb to 100 kb (peak - 150 kb)

Is it normal for trivia? May it be a reason of my PtokaX 15.25 crash?

Thanx a lot.

Best regards,
NemeziS
Title:
Post by: Tw?sT?d-d?v on 14 March, 2005, 19:46:59
Hmmmm.....

i got triv running

mem.usage=266kb

garbage=286kb

hub running ptokax 16.06 / robocop 10 / anagrames / funscript
Title:
Post by: NemeziS on 14 March, 2005, 20:40:11
i don't use RoboCop or some multiscripts.
I just edited Trivia a little. But may it be a reason of my PtokaX crash?

If it is, I will show you my trivia script.

Best regards,
NemeziS
Title:
Post by: plop on 15 March, 2005, 00:07:41
check the size of the questions file.
some trivia scripts load them fully into memory, this can cause the big mem usage.
but this isn't bad, it safes you from re-opening the file on every question and thereby it works faster.

try finding 15.18 (don't ask me or any 1 else on the board 2 give it 2 you).
it's a much more stable.

plop