debugging canvas performance