Sen, perhaps this is something you can enlighten me on.
Something I’ve recently implemented in my engine is freeing the RAM for a level.
It’s something that’s pretty essential seeing as I’ll have thousands of polygons per level, and a pretty large amount of textures too per level, with an average of around 150 to 200 megs of RAM being used.
This obviously needs to be cleared before the next level is loaded.
The process is pretty simple really, just nullify all references to everything.
On the offline SA player, this works perfectly. After pressing the clear button you see the RAM usage burning down, before it snaps to around 3.7.
Online it simply doesn’t work. Firefox’s RAM usage on the plugin container basically doesn’t change, but even Flash’s internal reading of the RAM usage only changes a bit. It gets reduced by a couple of megs. It makes no sense.
If what I’m doing works offline, why would it not work on the web player?
Edit - you can see for yourself here - http://rumblesushi.com/trex.html
Press C to clear the engine. The RAM usage goes down by like a meg, to 10.3, which is hugely different to how much RAM is free’d on the SA player.
I’ve tested it on Firefox and IE, the behaviour is the same on both.
Cheers,
RumbleSushi