Same thing happened to me. I'm assuming OP created the logic in the update function, meaning it is called every frame. So if you have a better PC there are more frames, the function is called more times and gives you less time to press space.