Is there a faster alternative to FImageUtils::CreateTexture2D?
Dear Friends at Epic,
I am using FImageUtils::CreateTexture2D to make a T2D from a color buffer obtained from ReadPixels using custom viewportclient class.
I have verified that the only thing that is causing my game to hang during this process is the call to FImageUtils::CreateTexture2D
I have looked at the code for this function and I cannot see an easy way to break it up over multiple ticks.
I also cannot use Task Graph System because this is a modification / creation of a UObject
Is there an alternative to FImageUtils::CreateTexture2D that will not cause the system to hang for a brief time?
The hang averages about 2 seconds.
Loading from Binary Array
I will be loading images from compressed binary arrays and will need to turn them into T2Ds, so I really do need a way to make a T2D from color buffer that does not cause a hang :)
Very Fast Version of CreateTexture2D
I wrote my own version which is basically instant
One notable feature is I made the SrcPtr const.
answered Apr 23 '14 at 02:33 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here