Improved copy to PBO and shared memory