D
dna48
Guest
Hello,
I am having a problem when saving repeteadly from a surface into a file (on Windows). Either when using save surface or when using a sprite in the middle and saving the sprite. After doing it repeatedly enough the memory consumption grows and grows, even without painting anything at all on the surface
I have tried freeing the surface, the sprite even the file_find every here and there but no matter what it keeps growing. Maybe i should use a buffer? If that is the case, has anyone info about how saving a surface to a buffer and save buffer into png?
I have attached a gmz file. Start on debug mode to see memory graph (or windows task manager)
https://ln.sync.com/dl/040b64000#sxtbfzkd-gzyqgf72-smxjnqvi-dx88jmkb
What i am doing wrong?
Thanks
I am having a problem when saving repeteadly from a surface into a file (on Windows). Either when using save surface or when using a sprite in the middle and saving the sprite. After doing it repeatedly enough the memory consumption grows and grows, even without painting anything at all on the surface
I have tried freeing the surface, the sprite even the file_find every here and there but no matter what it keeps growing. Maybe i should use a buffer? If that is the case, has anyone info about how saving a surface to a buffer and save buffer into png?
I have attached a gmz file. Start on debug mode to see memory graph (or windows task manager)
https://ln.sync.com/dl/040b64000#sxtbfzkd-gzyqgf72-smxjnqvi-dx88jmkb
What i am doing wrong?
Thanks