April 05, 2020, 05:06:57 AM

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

Offline JBR

  • Jr. Member
  • **
  • Posts: 78
Are pixmaps as quick as arrays.
« on: August 31, 2019, 08:12:31 PM »

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: 422
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.


SimplePortal 2.3.6 © 2008-2014, SimplePortal