aind-data-schema icon indicating copy to clipboard operation
aind-data-schema copied to clipboard

How to specify additonal properties of the visual stimuli renderer

Open bruno-f-cruz opened this issue 2 years ago • 2 comments

https://github.com/AllenNeuralDynamics/aind-data-schema/blob/773ee35126cb91689a0254d9d561b55f04093233/src/aind_data_schema/device.py#L588C1-L589C1

The refresh rate of the monitor is specified in the schema, however, the refresh rate of the render (aka UpdateFrame frequency) is currently not contemplated.

Additionally, how should one specify a specific texture bank asset (images) that is displayed during a BehaviorStimuli?

bruno-f-cruz avatar Oct 05 '23 18:10 bruno-f-cruz

The images shown are specified in the stimulus schema. https://github.com/AllenNeuralDynamics/aind-data-schema/blob/main/src/aind_data_schema/stimulus.py#L51

We've never had a situation where the refresh rate of the render and the monitor are separated, so haven't tracked that. But we can add that if that's something we need.

saskiad avatar Oct 05 '23 20:10 saskiad

Here's a good anecdote on the difference between these two frequencies https://stackoverflow.com/questions/23542591/open-tk-difference-onrenderframe-and-onupdateframe#:~:text=renderFrame%20is%20the%20main%20loop,or%2060%20times%2Fsecond).

bruno-f-cruz avatar Oct 05 '23 21:10 bruno-f-cruz