aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

Maximum framerate #24

Closed leoscholl closed 3 years ago

leoscholl commented 3 years ago

Using the 2D window class the maximum framerate appears to be around 40 fps.

With the 3D renderer I’ve measured up to 120 fps.

leoscholl commented 3 years ago

The 3D renderer can be used to do 2D experiments, just use the base Renderer class; however there is harsh lighting. Maybe we can modify the lighting to be more flat so the spheres look more circular?

leoscholl commented 3 years ago

opengl shaders contron the lighting. bmi3d implements "phong reflection" in phong.f.glsl, an opengl fragment shader. i wrote a new fragment shader that just spits out the base color without doing any lighting effects in none.f.glsl. problem solved