Hi,
I experienced what could be a Memory Leak in the
SetSpriteShapePolygon() function!
I'm using AppGameKit v1 Tier 1 (108, latest update) on Windows 7 64-Bit.
Here is some code to demonstrate:
spr = CreateSprite(0)
do
// Clean up previous shape and create new polygon
SetSpriteShape(spr, 0)
SetSpriteShapePolygon(spr, 2, 0, 0, 0)
SetSpriteShapePolygon(spr, 2, 1, 1.0, 1.0)
Sync()
loop
If you then open your Windows Task Manager and observe the memory usage while running the code you will see it steadily go up, at about 16 Kb per second!
In one of my larger projects where I frequently need to update multiple polygon shapes it adds up quite a lot over time.
Can someone confirm that this is a memory leak or am I doing something wrong?