as3
Compiz-like wobbling windows in AS3
2008 Sep 4th
This code was intended to be released back in October last year, but i never managed to do it since it needed some refactoring, some changes and had to be quite decent to present: then in November i got the chance to work with some very talented guys over at Jooce, in Paris, so i never got back to write something about it.
Btw, if you never tried Jooce then give it a try, it really deserves it!
More >
An AS3 profiler
2007 Oct 17th
NOTE
This post has been previously published on 2007/Oct/17: due to my move to another server i’m now in the process to manually recover the comments for this article. Fixed!
I’m currently working on an early-stage, more of a proof-of-concept thing, but i needed to know more about the code performances: googling for an ActionScript profiler just showed up ASProf, an AS2 profiler. So i decided to port to AS3 the C++ profiler i wrote for Aqua, the cross-platform framework i was working on until April: the original C++ implementation has been developed after being inspired by an article of Steve Rabin in the Game Programming Gems 1 book, that’s a nice one to have on the shelf together with some other great books of which i could post something about them later.
It is always wise to remember that if you are serious about code profiling, you’ll be better to search for some professional tools: in the C++ arena my choice would be this one, but if you plan to have lunch and dinner for the next couple of months give Eletric’s one a try, it really deserves a look.
Unfortunately for the AS3 world, i just haven’t found anything really usable for it up to now, so i just thought to release it under a zlib/png license and some hints on how it works here.
ProfilerConfig.Width = stage.stageWidth; ProfilerConfig.ShowMinMax = true; prof = new Profiler( 32 ); addChild( prof );
Hydra considerations
2007 Oct 3rd
While experimenting with the AIF toolkit i noticed some glitches that could be taken into consideration by the AIF team before going final with the release:
- it seems that image-type function parameters are bound to the selected images according to their alphabetical order, instead of the natural user-defined one: for instance, create a new kernel as here, select two images and refresh; you should be now looking at the image you loaded via “Load Image 2…”: now rename “in image4 srca” to be “in image4 srcc” and refresh. Wrongly, you are now looking at the first image
- the GUI doesn’t release cpu/gpu resources while minimized in order to relieve the machine from the rendering process
Aside that, i’m looking forward to try all this cool stuff with Astro!
Flash Player v9.0.60.184
2007 Aug 21st
It seems that with the r60.184 version the vertical bar thing went away, anyway still remains that very new singularity ;)
Noticeable difference
2007 Aug 20th
I haven’t had much time to test things out, but i managed to put together an ultra simple example on how 9.0.47 and 9.0.60.120 perform differently. This is the original image i’ve used to setup things:
