4 ms·
Well you only do the computation when you have the necessary inputs available, and in the case of something interactive that means waiting till you have the nec
by londons_explore 4y ago
Well you only do the computation when you have the necessary inputs available, and in the case of something interactive that means waiting till you have the necessary keypresses (or lack of keypresses).
You can still compute ahead if you have a good guess what inputs you'll receive (eg. You predict that no keys will be pressed), but you have to be happy to throw away the results if your prediction was wrong.