Page 1 of 1

SetInterval consumes fast memory every 3, 4 seconds

Posted: Fri Feb 17, 2017 11:15 am
by sinisrus
Hello,

SetInterval consumes fast memory every 3, 4 seconds (see fast memory in titlebar workbench) (i have tested only in winuae os3.9)

It is a bug ?

Code: Select all

/* Nouveau projet Hollywood */

Function p_Move(msg)
EndFunction

SetInterval(1, p_Move, 1000/50) ; 50fps

EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever

Re: SetInterval consumes fast memory every 3, 4 seconds

Posted: Sat Feb 18, 2017 6:13 pm
by airsoftsoftwair
No, that's not a bug because the memory is released after some seconds. It would be a bug if more and more memory was consumed but that's not the case. Memory is allocated and released. I didn't see any leaks.