thread texture loading

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

I would like to preload textures from files. I just want them to load in
system memory so that it does not need of direct3device.
But the D3DXCreateTextureFromFileEx use the device althought I specify to
use D3DPOOL_SYSTEMMEM.

I wan't to load texture in a different thread and in system memory to avoid
those high cost file access, and then to have texture ready to be propulsed
in memory in case of, by using UpdateSurface.

So, have you some advise, if my way of doing thing are wrong, or some
library than can do such thing ?

Tx by advance,

Nicolas,


.



Relevant Pages

  • Re: Compressed textures
    ... then load the texture into a plain surface in system memory and use ... When a movie is small enough, I readit into system memory as a binary stream defining the texels of different frames. ... Whenever I need a new video frame in the texture, I lock the texture, write the bytes and unlock it. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: D3DXCreateTextureFromFileEX - pool parameter only a suggestion?
    ... system memory resources are subject to the same ... on video memory, so you won't be able to create textures that are 4kx4k when ... > I'm using this function to create a texture in D3DPOOL_SYSTEMMEM. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Surface copying
    ... I checked the notes and the table in the UpdateSurface() docs. ... surface is an Off-screen plain in system memory and my texture was ... Jack wrote: ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Partial update of texture.
    ... I have the source of my texture data in system memory in a large buffer. ... shadow copy and doing the equivalent of UpdateTexture internally ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: D3DPOOL_SYSTEMMEM
    ... bob@xxxxxxxxxxxxxx spake the secret code ... if i want to load a texture in a machine with very little video ... You can't use textures in system memory for rendering, ... you're attempting to muck around with the texture on the CPU (fill it, ...
    (microsoft.public.win32.programmer.directx.graphics)