Delay between parallel port trigger and photodiode measured display onset

Have you tried reading though similar posts already on this forum?

If the signal is somehow arriving “before” the stimulus is displayed, then yes, that likely indicates a problem with time synchronisation, as in the thread above.