October 18, 2019, 06:33:18 PM

Author Topic: Are pixmaps as quick as arrays.  (Read 190 times)

Offline JBR

  • Jr. Member
  • **
  • Posts: 27
Are pixmaps as quick as arrays.
« on: August 31, 2019, 08:12:31 PM »
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.


Offline markcwm

  • Sr. Member
  • ****
  • Posts: 402
Re: Are pixmaps as quick as arrays.
« Reply #1 on: August 31, 2019, 09:31:45 PM »
Yes, pixmap is an array of pixel data that is in a format that can be sent as-is to the gfx memory.