justingardner / mgl

A suite of mex/m files for displaying psychophysics stimuli
http://justingardner.net/mgl
Other
18 stars 22 forks source link

frameRate and bitDepth settings #53

Closed justingardner closed 2 years ago

justingardner commented 2 years ago

In mglOpen you commented out frameRate and bitDepth configuration. Why? This is set by mglResolution which hasn't change in metal, no? These are important settings - particularly frameRate that should still be settable.

benjamin-heasly commented 2 years ago

Is there a one-line change to allow specifying the bit depth of our metal view and/or frame buffer?

benjamin-heasly commented 2 years ago

Oh I see, I added a warning that these params are unsupported. I think I misunderstood how they worked. I removed the warning in 70c53cea2d5dd4b3b1aacdb7c8312c5e021a8ec5.

benjamin-heasly commented 2 years ago

70c53cea2d5dd4b3b1aacdb7c8312c5e021a8ec5 also adds an experimental command to set the color pixel format of the mglMetal app's view -- mglMetalSetViewColorPixelFormat