code optimize in GpuContext