added Graph support and improved performance of FrameQueueBuffer