(WIP) single-core GPU optimization

need to make this work in real single core mode too.