I suspect that they will be almost indistinguishable in practice when writing your own code from scratch.
.callOnFlip() method is particularly useful in Builder-generated code, as you don’t have direct access via code components to insert a line of code exactly following the
win.flip() operation. i.e. the
win.flip() happens somewhere deep in the script, which might be some distance from the code inserted in the “each frame” tab of a code component.
PS please don’t quote your code with
> symbols in this forum. It stops the proper highlight and indentation taking effect. Just surround your code snippets in triple backticks (i.e. ```) before and after.