diku-canvas icon indicating copy to clipboard operation
diku-canvas copied to clipboard

Problem occurs if the react function evaluates slower than the rate of events

Open Cavtheman opened this issue 1 year ago • 6 comments

When giving the interact function a react function that is slower to evaluate than the time it takes for a new event to appear, new events flood the queue, meaning that the evaluation of new events get further and further behind.

The problem is also dependent on the speed of the system, e.g. some systems won't experience it while slower ones might.

An example would be the 10g reference solution: https://github.com/diku-dk/PoP/blob/main/referenceSolutions/2023/10g/AsteroidApp.fs

Cavtheman avatar Nov 22 '23 09:11 Cavtheman