What is the expected renderscript rsSample() performance? -
rssample() seems intended sampling mipmapped textures across multiple levels of detail avoid aliasing. fisheye example use case.
the implementation samples 8 pixels underlying mipmap , linear blend of them.
it seems can 15 mpixels/second on google pixel simple kernel:
uchar4 __attribute__((kernel)) rescaletest(uint32_t x, uint32_t y) { float2 location = {x,y}; return convert_uchar4(rssample(ginput8888, gwraplinearmiplinear, location/2000.f, 1.5f)*255.f); }
considering composited graphics presumably use mipmaps, , composite 1 texture @ 60fps needs 120mpixels/sec, doing wrong?
Comments
Post a Comment