Oculus SubmitFrame & glutSwapBuffers
Hi,
I am seeing a weird behavior with some performance numbers and was wondering if anyone has a good explanation/or idea of what ovr_submitFrame is doing internally. So I have this flow (the blit's are copying pre-oculus fbo to screen, NOT the mirrored):
Draw (~8ms) > Blit (0.1ms) > SubmitFrame > glutSwapBuffers (1.0ms)
where swap buffers is taking 1ms if it's run after submitframe. The whole app time (pre-submitframe time - post-submitframe time) takes about 9.5ms. But if I do the following:
Draw (~8ms) > Blit (0.1ms) > glutSwapBuffers (0.1ms) > SubmitFrame
glutSwapBuffers only takes 0.1ms and the whole app time is only 8.5 ms. Why is running swapbuffers before submitframe faster than right after? Submitframe shouldn't have any impact on fbo0 does it? This is on windows 7, oculus sdk 1.3.0, cv1 & freeglut (glutSwapBuffers is just calling window's opengl swapbuffers function internally; checked the source)
Thanks
I am seeing a weird behavior with some performance numbers and was wondering if anyone has a good explanation/or idea of what ovr_submitFrame is doing internally. So I have this flow (the blit's are copying pre-oculus fbo to screen, NOT the mirrored):
Draw (~8ms) > Blit (0.1ms) > SubmitFrame > glutSwapBuffers (1.0ms)
where swap buffers is taking 1ms if it's run after submitframe. The whole app time (pre-submitframe time - post-submitframe time) takes about 9.5ms. But if I do the following:
Draw (~8ms) > Blit (0.1ms) > glutSwapBuffers (0.1ms) > SubmitFrame
glutSwapBuffers only takes 0.1ms and the whole app time is only 8.5 ms. Why is running swapbuffers before submitframe faster than right after? Submitframe shouldn't have any impact on fbo0 does it? This is on windows 7, oculus sdk 1.3.0, cv1 & freeglut (glutSwapBuffers is just calling window's opengl swapbuffers function internally; checked the source)
Thanks
