It's also important to note that most GPU's will optimize for shapes that have duplicate vertices, mostly though occlusion and culling. You've got to push unique or semi-unique vertices through to see real performance.
var shape = new Shape(verts, texture, SHAPE_TRIANGLE_FAN);
var g = new Group(...)g.clipX = 10;g.clipW = GetScreenWidth()-20;// Now when g is draw, it is clipped relative to the screen.g.draw();
... if the image doesn't go away immediately after it goes out of scope, it's gone within 30 seconds. It blew me away, honestly.
If the JS engine holds onto scarce resources too long, it can cause issues.
[Engine] Strict Warning in file ./system/scripts/turbo/tileset.js line 198reference to undefined property i.tex_coords.x1[Engine] Strict Warning in file startup/scripts/lobby.js line 134assignment to undeclared variable changed[Engine] Strict Warning in file ./system/scripts/turbo/font.js line 161reference to undefined property this.string_cache_size