Transferring image data over USB and rendering an image on the screen should not be happening in the same thread, but that's where we're at currently.
The GUI should be running in the main thread, and prioritize responding to user input. Data transfer should happen in a separate thread. Even better, image rendering should also happen in a separate thread.
I haven't figured out how to do this yet.
Possible tools to use:
It seems like there needs to be a shared memory situation - image data transfer bandwidth can approach 48 MB/s, a single image can be max 2^28 pixels, so we probably want to minimize how many times we're making copies of the data.
I've made many attempts to do this, but still currently lack the skills to implement this effectively. Any help is appreciated.
Transferring image data over USB and rendering an image on the screen should not be happening in the same thread, but that's where we're at currently.
The GUI should be running in the main thread, and prioritize responding to user input. Data transfer should happen in a separate thread. Even better, image rendering should also happen in a separate thread.
I haven't figured out how to do this yet.
Possible tools to use:
It seems like there needs to be a shared memory situation - image data transfer bandwidth can approach 48 MB/s, a single image can be max 2^28 pixels, so we probably want to minimize how many times we're making copies of the data.
I've made many attempts to do this, but still currently lack the skills to implement this effectively. Any help is appreciated.