Optimize interaction canvas clearing for performance