Add to gpu.c a wait to mimic interrupt handling