Refactor graphics performance merge