Posted 18 December 2012 - 06:43 AM
1)Loading soon to be used image data from disk to RAM
*Compression? (will add CPU load, but possibly load faster from disk)
2)Sending it to the GPU
*Compression? (faster uploading, more GPU load to decompress, all compression may happen on GPU instead of CPU!)
*Copy the image somehow, upload directly to a framebufferthingie? I dont know. Copying might be necessary if you compress unless there is some hardware decompression thing.
If possible, i would keep the images in a compressed form on disc and decompress on GPU.
If images cant be compressed on disc, either compress them on CPU and decompress on GPU if needed or just pass them as-is.
It would probably be best to let the program decide where and if to decompress (and compress if disc contains noncompressed data) depending on how fast the GPU, CPU and uploading is.
It would probably have these parts: