i use SetPixels32 to make 2 pictures (3456 * 1296) every frame. a little big. my FPS just 20, and the profiler show “SetPixels32” function cost 60%+ cpu. i want to make it fast, my target is 30 FPS.
result = GetFramePixels(_handle, _frameHandle.AddrOfPinnedObject(), _texture.width, _texture.height);
if (result)
{
_texture.SetPixels32(_frameData);
_texture.Apply();
}
i think multithreading may be a good idear. but i don’t konw how to split SetPixels32 in multithreading. who can tell me thanks!
my other cpu is little but main is full. my cpu have 32 core, just one full, other all empty. and my memory is 64G engphe.