I am making a car simulation. There are a three mirrors in the car for observing back. For these mirros, i used SceneCapture2D component. I am creating materials and textures at runtime.
Images are fine but performance impact is HUGE. When i lower the Width and Height fileds of textures, image quality reduces but there is no impact to performance. (I tried 125x35 over 1250x350, low image quality, same FPS.) I disabled “CaptureEveryFrame” field for every SceneCaptureComponent2D but I need more performance. Size of mirrors are little so reducing render resolution is fine for me. How can i reduce render resolution for SceneCapture2D Component?
put a single angular camera and one single capture in the back of the car
then by materials you just crop the capture and put each part in each mirror.
this way you triple performance.
Thanks a lot for the flags. I removed unnecessary flags already.
put a single angular camera and one single capture in the back of the car
then by materials you just crop the capture and put each part in each mirror.
this way you triple performance.
Thanks for this advice also. How can i crop the capture? One SceneCapture and only one texture? How can i split one texture to three parts at runtime ?
This method did indeed impact performance. But I still get 90fps at 1080p resolution on blank scene with 3070. Considering that the scene is empty, I need to increase the fps even more. I set Tick Interval of SceneCaptureComponent to 0,04 btw. Is there really no way to make SceneCaptureComponent render at lower resolution?
I dont believe a simple material with tiling and offset would be noticeable in terms of performance. But not 100% sure. With regular bitmaps performance of this method is not relevant