tetris

Tetris Game

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!

On the left it is the original tetris game, unmodified. On the right it is the instrumented version, with one global aspect deployed this way (the pointcut matches all the join points it sees and the advice just proceeds):

var pointcut = function(){ return true; };
var advice   = function(jp) { return jp.proceed(); };
AspectScript.around(pointcut, advice);

The counter below the game frames shows the number of jp seen by the aspect.

 

0 join points matched so far! [reset]

  • tetris.txt
  • Last modified: 2009/10/26 14:35
  • by aspectscript