Re: the most efficient way to send data to a GPU



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.


.



Relevant Pages

  • Re: the most efficient way to send data to a GPU
    ... // format of pixel data ... data conversion (converting it yourself as you receive it ... I want my driver to do as minimal as possible. ...
    (comp.graphics.api.opengl)
  • Re: pixel data chunks
    ... all of the pixel data is put into a single block in the file. ... The rationale for defining the format this way was probably that it ... permits encoders to run with a fixed-size memory and still ... The only encoding where you can safely expect this encoding ...
    (comp.protocols.dicom)
  • Re: Is compressed pixel data in unencapsulated format valid?
    ... syntax and includes the pixel data in unencapsulated format, ... encoding it in a fragment. ... encapsulated format and not present in unencapsulated format. ... the second one is indeed the jpeg stream. ...
    (comp.protocols.dicom)
  • Re: PGM file
    ... >>in the header of PGM file ... > One indicates that the pixel data is encoded as (portable but big and ... > slow) ASCII values, while the other indicates raw byte data that is ... There is no endian issue with the 8-bit format. ...
    (sci.image.processing)
  • Re: pixel data chunks
    ... The pixel data in these images are divided into chunks of<= 65532 ... The rationale for defining the format this way was probably that it ... Whenever the memory buffer is ... encapsulated transfer syntaxes. ...
    (comp.protocols.dicom)