The aerys-monitor is a small and lightweight library inspired of Mr.Doobs "stats" library. Here are the main features :
- watch any property of any object of any class
- customizable update rate
- cutomizable per-property color
- chart rendering for numeric values
- watch framerate, memory and Flash Player version
- ready to use framerate property
The Monitor class has been updated with the following changes :
- Flash player version style is now called "version"
- new property "backgroundColor" to change the background color of the monitor
- new "framerate" to get the framerate of your application
- the framerate and memory usage are now monitored by default
Here is a sample snippet to show how simple it is to use :
// get a singleton Monitor object var monitor : Monitor = Monitor.monitor; // set the update (refresh) rate to 15 updates per second monitor.updateRate = 15.; // add the monitor to the display list stage.addChild(monitor); // watch the rotationX property of the camera object with a scale value of 1 / (PI / 2) monitor.watch(camera, "rotationX", 0x55ff00, 1. / (Math.PI / 2.), true); // watch the rotationY property of the camera object with a scale value of 1 / (2 * PI) monitor.watch(camera, "rotationY", 0xff5500, 1. / (2. * Math.PI), true); // watch the rotationZ property of the camera object with no scale value (=> no chart rendering) monitor.watch(camera, "rotationZ", 0x5599ff); // watch multiple properties monitor.watchProperties(physics, ["processingTime", "speed"], [0x00ff00, 0xff0000], [1. / 40., 1. / 10.]); // change the background color (0xAARRGGBB) monitor.backgroundColor = 0x7f000000;
And here is how it looks :
The library is under GNU v3 licence and is available on Google Code. Have fun !
I'm very glad and honored to announce I'm now part of the jiglibflash library development team ! I'll try to give my two cents about :
- data structures
- API interfaces design
- general optimizations
Aerys don't have plans for a Minko related physics engine for now. This is why we chose to work with the jiglibflash community to help building a robust and reliable engine !
There is a lot going on around the Flash platform right now. A little thing called "molehill" most of your must have heard about... You can be sure I'll blog about that soon enough !