Re: the most efficient way to send data to a GPU
- From: fungus <openglMYSOCKS@xxxxxxxxxx>
- Date: Tue, 03 Jul 2007 09:27:50 -0700
On Jul 3, 2:14 pm, anon <a...@xxxxx> wrote:
glTexSubImage2D( GL_TEXTURE_2D,
0, // base level image
border, // offset in texel image
// in x dir
border, // offset in texel image
// in y dir
saScConf.dim.noPoints, // width of the image
saScConf.dim.noLines, // height of the image
GL_LUMINANCE, // format of pixel data
GL_UNSIGNED_INT, // type of data
NULL );
My suspicion is data transfer from the system memory (dsplBuff) to gpu
is not a DMA.
Probably not.
So, what other efficient methods are there?
Do you know how can I improve this?
I would send it as unsigned char, not int. Your graphics
card is going to convert it anyway so you can cut out the
data conversion (converting it yourself as you receive it
is bound to be more efficien than making the driver do it).
--
<\___/>
/ O O \
\_____/ FTB. Remove my socks for email address.
.
- Follow-Ups:
- References:
- the most efficient way to send data to a GPU
- From: anon
- the most efficient way to send data to a GPU
- Prev by Date: Re: the most efficient way to send data to a GPU
- Next by Date: Re: the most efficient way to send data to a GPU
- Previous by thread: Re: the most efficient way to send data to a GPU
- Next by thread: Re: the most efficient way to send data to a GPU
- Index(es):
Relevant Pages
|