Open emilwestergren opened 8 years ago
The cost is some extra memory allocations every frame
How much will it cost in terms of processing time per frame ?
Hides recycling from the "user layer"
I think it's a good idea.
Go ahead. It is a good idea as we most likely will keep the luma part around for longer then the color.
How much will it cost in terms of processing time per frame ?
Not that much, it's just the extra allocation and deallocation of object data for the high level images.
Is this issue still relevant? @emilwestergren
Yes, but it's not urgent and it might not be possible with our current architecture.
Currently
OpenGLPacked
images (packedGpuImages
) are recycled in theGpuContext
they are created in. I suggest we move this recycling to a lower level (OpenGL texture level). This is more in sync with the recycling ofByteBuffer
forRasterImages
._coordinateSystem
when recycling images@sebastianbaginski @simonmika opinions?