#105 ✓resolved
Christopher Stawarz

Dequeued stimuli are never removed from display stack

Reported by Christopher Stawarz | March 27th, 2014 @ 03:18 PM | in 0.7.0 (closed)

The "dequeue_stimulus" action makes the target stimulus invisible, but it doesn't remove it from the StimulusDisplay's display stack. Instead, the stimulus stays in the stack indefinitely, even after the experiment is stopped and restarted.

This isn't necessarily a huge deal, but it definitely wastes CPU cycles. Specifically, StimulusDisplay::drawDisplayStack will test every stimulus that has ever been displayed for visibility, even if the user only presents one stimulus at a time and dutifully dequeues each one after display.

Probably the right thing is for StimulusDisplay::updateDisplay to remove any stimuli that become invisible.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core framework and supporting libraries for the MWorks Suite

People watching this ticket