How could I improve video client overlay drawing performance?

I draw boundingbox overlay by ourselves with BackgroundPlugin like sample AnalyticsOverlay, the drawing look good but we have performance issue when put more cameras (like 32) in smart client, the boundingbox rendering seems very slow, I debug and see the all calls of addOn.SetOverlay(bitmap, overlayId, false, true, true, 1.0, DockStyle.Top, DockStyle.Left, 0.0, 0.0) from 32 ImageViewerAddOn running on one main thread. I see sampleRateOfOverlay to 25. Do you have a idea how to improve performance for this situation? thanks a lot!

Amy

There is a limit to how many overlays (depending on size and refresh rate) you can use. Right now Milestone has no guidelines to improve performance.

Could you tell me what is limit for overlays? how many high resolution camera like 1080p can draw smoothly simultaneously at what refresh rate in smart client?