Hi guys, I've noticed something strange. I just want to output a few variables before the main while(App.IsOpened()) loop, but it seems like it doesn't display the last thing before the loop until something inside the loop outputs. For example, if I have:
cout << endl << "Vert angle before: " << twoLayers[0].vertical_tilt_angle;
cout << endl << "Horiz angle before: " << twoLayers[0].horizontal_tilt_angle;
while(App.IsOpened()){
It only displays the first line, until an event in the loop triggers another cout, at which point it outputs the second line, then the one from the event.
If I put in this:
cout << endl << "Vert angle before: " << twoLayers[0].vertical_tilt_angle;
cout << endl << "Horiz angle before: " << twoLayers[0].horizontal_tilt_angle;
cout << endl << "MOOOOOOOOOO";
while(App.IsOpened()){
It outputs both, but not the MOOOOOOO until, as before, something in the loop outputs.
I'm noticing this inside the loop as well, and it's a little annoying. Does anyone know the cause of it?
Thanks!