Are pixmaps as quick as arrays.

Started by JBR, August 31, 2019, 20:12:31

Previous topic - Next topic

JBR

Hi,

I have 32 planets but only draw one a at time using pixmap->texture.

I will be updating each planets pixmap every frame but only plotting one.

Basically does a pixmap stay in main memory, where it will be accessed as if it was an array?

(if not then I'll have to go array->pixmap->texture - just trying to avoid the array!)

Thanks, Jim.


markcwm

Yes, pixmap is an array of pixel data that is in a format that can be sent as-is to the gfx memory.