Digital SPAD scintillation detector simulation flow to evaluate and minimize real-time requirements