URL of experiment: https://pavlovia.org/andero/focus-investment-task
Description of the problem: A task (that makes heavy use of frame-by-frame drawing) runs happily to the end, but then there is a huge delay between the last participant interaction and the completion of the experiment.
The task is a “Multiple Object Tracking” paradigm, so each trial has 9 polygons that move each frame for 5 seconds (I’ve tested it with about 20 trials, but want to eventually run more).
I suspect the frame-by-frame drawing creates some data that gets processed/uploaded at the end. I’ve switched off auto logging from each element as well as from the task, but to no avail.
The regular data file of the experiment is small (30-40 KB). The browser consoles tells me the task takes about 50 - 90 MB of RAM. However, in the task manager, the browser uses up to 2 GB while running the task, including during the closing stage that is the main problem.
Any pointers would be greatly appreciated!