Currently I need to write:
unsigned char* data = renderTexture->newImage()->getData();
But this works very slow and processor loads gets crazy even on iPhone 6.
How can I effectively getData()
from renderTexture
?
Currently I need to write:
unsigned char* data = renderTexture->newImage()->getData();
But this works very slow and processor loads gets crazy even on iPhone 6.
How can I effectively getData()
from renderTexture
?
and you are testing on iPhone 6 hardware or using an emulator?
@zhangxm do you have any thoughts here?
Any more codes about the usage? And what’s the device you tested on?
I just created default renderTexture
with size of getFrameSize
, full screen size and visited\rendered this
.
Nothing special just typical usage of renderTexture. And so when tried to getData();
from it - processor loads was very high bellow 90%. Tested on iPhone 6.