Improve visualizer preformance