SyntaxBomb - Indie Coders

Languages & Coding => BlitzMax / BlitzMax NG => MiniB3D => Topic started by: JBR on August 31, 2019, 08:12:31 PM

Title: Are pixmaps as quick as arrays.
Post by: JBR 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.

Title: Re: Are pixmaps as quick as arrays.
Post by: markcwm 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