In my flex application with away3d 3D-objects are created and added to scene and they are also removed/disposed again, and then they are created/added again.
Performing these scene altering operations the RAM usage of the flashPlayer process (monitored in Windows7-Taskmanager) steadily increases by big amounts (lets say 20MB).
On the other hand the Memory-profiler from FlashBuilder does not show any such increases at all. Regarding to memory profiler the application still uses bascially the same amount of memory (the line stays flat).
There are some objects marked as loitering, but they dont seem to build-up. And their total amount is (if at all) 0,3MB.
After a while of 3d-scene altering operations (adding, removeing objects) the application/flash-player crashes, most possibly to not being able to allocate more RAM (Taskmanager shows RAM almost completely used up by flashPlayer-process). The application does not exit due to 3d-resource related limits like vertex-buffers, but here are now my questions:
Questions:
a) Are there areas of RAM-usages an away3d application uses up, which can not be profiled by FlashBuilder?
For exmaple: Is it possible that some objects (maybe stage-3d related) that hold onto some areas of memory/RAM which do not show up in memory profiler?
b) Do you have any other idea what might be the cause here for increased RAM-usage or why it does not show up in memory profiler? I mean at least i expected to see it in memory profiler.
c) Is it possible that away3d could in theory use stage3d-api inappropiately (i am using a somehwhat patched version of away3d4 alpha) that could cause such problems? Or would it be more likely that this is a problem in flash-player itself?
d) Generally i understand that the flashPlayer allocates RAM as it sees fit, and that its not the same amount of memory my application currently uses. But if my application seems not to use/demand any more memory (at least thats what the profiler tells me) i dont understand why flashPlayer allocates more and more memory - even to the point of crashing. Any ideas here?