I want to use a Python script to simultaneously control the real-time display and acquisition of event data and frame camera data from the same scene. When I use dual threading, the event stream thread displays and saves normally, but the frame camera thread freezes. When I close the event stream thread, the frame camera thread returns to normal. Attached is the part of the function for the event stream thread, which uses the official acquisition code. Are there any optimizations that can be made?