Re: Texturing fails silently, objects are all white

From: Clafou (Clafou_at_discussions.microsoft.com)
Date: 08/17/04


Date: Tue, 17 Aug 2004 09:49:02 -0700

Absolutely! 4MB doesn't leave me much space at all. I'm running at 1152x864
in 16-bit mode so multiplied by 2 to account for a back buffer, I actually
only have about 200KB of VRAM left. That pretty much concurs with the limits
I'm hitting (128x256 24 bit is OK, I even have two of those displayed at a
time). I would like where necessary to downsample, or output an error message
if the situation is just too bad, but I need to be able to detect the
problem, and I'm not sure how!

"Jack Hoxley" wrote:

> As a thought... even with the managed pool where it pages it in/out of VRAM
> as/when needed, surely it still must be in VRAM when the Draw*( ) call is
> made? With 4mb of RAM you'd struggle to fit a 24bit 1024x1024 texture in
> (3mb exactly iirc). The front/back buffers will probably knock the usable
> space down to ~2mb at a guesstimate.
>
> Thus if the image simply cannot fit in at all, then there isn't anything
> that can be done about it... Maybe the only solution then would be to
> downsample the image until it fits? or tile-it so that only a small %age of
> it needs to be in memory at each Draw*( ) call?
>
> hth
> Jack
>
>
> "Clafou" <Clafou@discussions.microsoft.com> wrote in message
> news:88358A09-840D-470B-B6BA-F964E8B4731C@microsoft.com...
> > Hi
> >
> > I am using D3DXCreateTextureFromFileEx to load textures into the managed
> > pool. These textures are big photos, and on old graphics cards with low
> > memory (4Mb of VRAM), the textures are not displayed at all and my objects
> > are all white. I imagine this is because the video memory is too low? Is
> > there a workaround?
> >
> > I would need to at least detect that texturing fails (currently, rendering
> > executes without returning any error code), so that I can try to reduce
> the
> > size of the texture or output a meaningful error message. But so far I
> > couldn't find any way to detect failure. Should I used the default pool
> > instead of the managed pool, would that help me detect a failure?
> >
> > Many thanks in advance!
> > Clafou
>
>
>



Relevant Pages

  • Re: Mysql Server Optimierung INNODB
    ... Schön viel RAM. ... Klingt nicht nach InnoDB. ... BUFFER POOL AND MEMORY ...
    (de.comp.datenbanken.mysql)
  • Re: Openeing & Saving MSP2000 files with MSP2003
    ... service pack problem. ... The error message above and the ability to save a pool ... For what I could see from the MSP Help dialog box the ...
    (microsoft.public.project)
  • Re: why the usage of gets() is dangerous.
    ... that is to say one that always terminates the program ... with an error message if the buffer is exceeded. ... You have to make it safe within the guarantees provided by the C ...
    (comp.lang.c)
  • Re: IIS Setup
    ... Faulting application w3wp.exe, version 6.0.3790.1830, faulting module ... application pool 'DefaultAppPool' terminated unexpectedly. ... Can you post the error message here.... ... Default Website Running On ASP Using AppPool: ...
    (microsoft.public.windows.server.sbs)
  • [Full-disclosure] Re: Buffer-overflow in Ultr@VNC 1.0.1 viewer and server
    ... overflow the buffer in 3 bytes? ... the buffer is overflowed just by those 3 bytes plus the Windows ... error message created with FormatMessage. ... Limited just because the attacker has no control for executing malicious ...
    (Full-Disclosure)