This article applies to:
E-Prime offers the ability to use display flipping to perform any drawing operations. The use of flipping is recommended especially for larger displays to reduce the possibility of display tearing (when part of the new/old screen appear at the same time).
Use of flipping requires a PreRelease value approximately of one refresh duration for the object that preceeds the drawing object to ensure proper scheduling. Without ample PreRelease, the object schedules for the following refresh period. This is reflected in the OnseTime and OnsetDelay properties.
To turn off this feature, perform one of the following:
Display.FlippingEnabled = False
In the E-Studio interface:
- Open the Experiment Object.
- Navigate to the Devices tab.
- Open the Display device properties.
- Select No in the the FlippingEnabled dropdown.
- Click OK to accept all changes.
NOTE: When flipping is enabled, all E-Basic Canvas calls targeting the on-screen canvas internally wait for the vertical blank refresh period. The use of Display.WaitForVerticalBlank is not necessary and if used causes the Canvas operation to draw a refresh later. Whether using flipping or not, we recommend performing any drawing commands on an offscreen canvas. Then use the Canvas.Copy operation to update the screen.
For further information on scripting using E-Basic, please refer to the E-Prime Command Reference (https://pstnet.com/ecr).