Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mgl:troubleshooting [2011/07/23 23:09]
mgl:troubleshooting [2020/07/14 17:39]
Line 1: Line 1:
 When things don’t work, there are some very simple bugs you should check for before losing hope. When things don’t work, there are some very simple bugs you should check for before losing hope.
 +
 +====== Short segment lengths cause dropped frames ======
 +
 +Setting the length of the segments of a task to "0 second"​ can result in lots of dropped frames. This happens because mgl adjusts automatically for the difference between the expected ("0 second"​) and the actual length of a segment ("​always > 0 seconds"​). Thus, if the lengths are set to "0 seconds"​ mgl is forced to make continual adjustments,​ what affects the speed of the frames display and causes dropped frames.
  
  
Line 17: Line 21:
 ====== Matlab control ====== ====== Matlab control ======
  
-Don't let the window from which you are calling your code be on the screen that is taken over by MGL, or you will lose the ability to stop the code from running or exit if your code is interupted by an error. If you do this, you can always type option-command-ESC (brings up Force-quit applications) to close the window. This will also quit your matlab session.+Don't let the window from which you are calling your code be on the screen that is taken over by MGL, or you will lose the ability to stop the code from running or exit if your code is interupted by an error. If you do this, you can always type option-command-ESC (brings up Force-quit applications) to close the window. You may have to hit <​ENTER>​ twice to quit Matlab. This will cause Matlab to close and shutdown the mgl screen.
 ====== Clear all ====== ====== Clear all ======