问题
Does anyone know how to measure GPU memory usage when using Stage3D in Flash?
I know there are System.*Memory
counters, but I couldn't find GPU one.
Any ideas?
回答1:
You can use Adobe Scout, for now it's free. As far as I know, it's the best AS profiling tool at the moment. Regarding GPU, it displays memory, draw calls count, Stage3D instructions and their result for every single frame. You can even edit your shaders and watch the result in real time. Here is the guide.
The only problem is that you have to compile your project using the new ASC 2 compiler. If for some reason it's not possible (your project uses Flex, for example), you can enable telemetry on the compiled SWF using SWFScoutEnabler tool.
来源:https://stackoverflow.com/questions/10479174/how-much-of-gpu-ram-is-used-by-flash-stage3d