-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Reaction Time #163
Comments
I want it to be feasable! :D scene = Scene()
insert_stimulus_plot(scene)
t0 = time()
while isopen(scene)
if ispressed(scene, Keyboard.space)
rt = time() - t0 # Compute reaction time
println("The Reaction time is $rt")
end
draw_frame(scene)
end ? If there are any performance problems, we should fix them as fast as possible anyways ;) |
exactly! |
It sounds like the feature request applies to a downstream package, so I'm closing this issue. Re-open if I am mistaken. |
This is the follow up of #162 with some more details about what I would like to do.
As psychologists are very interested in reaction times, a program for their experiment should separate the display part (loading stimulus and rendering it) from the response collection phase (I imagine it as a minimal
while
loop only checking for input to increase precision).It seems that in Makie, those two aspects are somehow integrated, and I am not sure how to use it to build, for instance, a simple reaction time.
In a nutshell, such task would simply display a stimulus (let's say a green circle) and wait for the user's input (and compute the reaction time between stimulus rendering and response).
Using GLFW, I managed to do it, except for the stimulus display, and surely quite inefficiently (disclaimer: my experience with such program is based on pygame: I have no experience with openGL and it might be my way of thinking that is oldschool or just plain wrong):
Is such reaction time task, with a good precision and control, feasible in Makie? If not, what other backend / tools should I look for?
Thanks a lot!!
The text was updated successfully, but these errors were encountered: