Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tetris [2009/10/16 21:31] aspectscript |
tetris [2009/10/26 17:35] (current) aspectscript |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tetris Game ====== | ====== Tetris Game ====== | ||
- | At your left it is the [[http:// | + | This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference! |
- | At your right it is the instrumented version, with a global aspect deployed (the pointcut always returns true). | + | |
- | At the bottom of the page you can observe | + | On the left it is the [[http:// |
+ | On the right it is the instrumented version, with one global | ||
+ | |||
+ | <code java> | ||
+ | var pointcut = function(){ return true; }; | ||
+ | var advice | ||
+ | AspectScript.around(pointcut, | ||
+ | </ | ||
+ | |||
+ | The counter below the game frames shows the number of jp seen by the aspect. | ||
< | < | ||
- | <iframe src="/ | + | <iframe src="/ |
<iframe src="/ | <iframe src="/ | ||
</ | </ | ||
< | < | ||
- | <div style=" | + | <div style=" |
| | ||
<script type=" | <script type=" | ||
Line 23: | Line 31: | ||
}, 1000); | }, 1000); | ||
</ | </ | ||
+ | |||
</ | </ |