-
-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Is there a way to improve the total FPS of the whole scene? it runs around 300FPS when the streaming is disabled but once I enable the streaming then the FPS drops to below 30FPS.
I noticed these 4 instructions are the heaviest because they are done on the CPU
_tempTex.ReadPixels(new Rect(0, 0, Width, Height), 0, 0, false);
_tempTex.Apply();
_grabber.SetTexture2D (_tempTex);
_grabber.Update ();
I tried to run these in a separate thread but does not work. I was thinking maybe rely on the shader to create the texture and send it to gstreamer but I think that is not feasible then thought about having the Camera Target Texture to be on a shared texture using GPU and have a gstreamer pipeline (using CMD terminal) reads that shared texture and send it as a UDP stream.
I am running a scene with multiple streaming cameras and the issue is the FPS drops to 4 FPS so I need to find a way to improve the FPS.
Any thoughts? How much FPS are you getting when you run the scene?
Tested on:
- Intel i9 latest Gen
- Nvidia RTX A2000 12GB
- 64GB RAM
- Windows 11 Pro
Thank you very much.