3 ms·
> They choose a time that computation happens. But computation should instead be done as soon as possible, and the output delayed to the necessary time. This i
by kevingadd 4y ago
> They choose a time that computation happens. But computation should instead be done as soon as possible, and the output delayed to the necessary time.
This is fundamentally not a solution for any problem where you're reading input from outside. If that animation is reacting to user input, rendering the frames 100ms ahead will create 100ms or more of "input lag" that the user can see and feel and they hate it.
- londons_explore 4y agoWell 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.