Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception occurred when adding a manifest file to a VC6 project for xp style! Pin
jtasph2-Jun-08 15:34
jtasph2-Jun-08 15:34 
AnswerRe: Exception occurred when adding a manifest file to a VC6 project for xp style! Pin
jtasph2-Jun-08 17:23
jtasph2-Jun-08 17:23 
GeneralSome other exception. Pin
jtasph2-Jun-08 19:06
jtasph2-Jun-08 19:06 
QuestionD3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8882-Jun-08 4:27
Hanan8882-Jun-08 4:27 
AnswerRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Alan Balkany2-Jun-08 8:21
Alan Balkany2-Jun-08 8:21 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8882-Jun-08 22:56
Hanan8882-Jun-08 22:56 
AnswerRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Rajkumar R2-Jun-08 21:39
Rajkumar R2-Jun-08 21:39 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8882-Jun-08 23:37
Hanan8882-Jun-08 23:37 
Thank you.

I made an experiment with calling D3DXCreateTextureFromFileEx() on 10 PNG images of size 8192X8192 and received no error code.

Rajkumar R wrote:
say if you load all the textures at once 50 * 32 * 32 * 4 + 50 * 64 * 64 * 4 + 200 * 256 * 256 * 4 = 50 MB, while reasonable video memory of GPU is 64 MB, 50 MB is huge size only for textures.



This should be about 260 MB so it doesn't seem like actual GPU mem is a concrete limit on the texture memmory size.


Perhaps there are more things that worth checking for example if this creates any problem (error or performance) when drawing (m_pSprite->Draw()) which is the only thing I do with the textures.

Another thing is trying to load 290 of those giant textures (maybe 300 is some strange number of resources limit).

Rajkumar R wrote:
BTW, do you need this D3DUSAGE_RENDERTARGET flag, it is used if you want to render to texture.


I changed to D3DUSAGE_DYNAMIC. Loading textures still stopped at the same image in the series (actually exactly 1 image less), BUT, some error relating to ID3DXFont
(using <code>ID3DXFont::DrawText() suddenly draw some wacky straight scribbles that resemble the actual text) that I had and had a reason to believe happened because of my "texture loading abuse" was fixed.
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8883-Jun-08 0:54
Hanan8883-Jun-08 0:54 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8883-Jun-08 1:23
Hanan8883-Jun-08 1:23 
AnswerRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Rajkumar R3-Jun-08 2:41
Rajkumar R3-Jun-08 2:41 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Rajkumar R3-Jun-08 2:30
Rajkumar R3-Jun-08 2:30 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8883-Jun-08 2:57
Hanan8883-Jun-08 2:57 
GeneralRe: D3DERR_OUTOFVIDEOMEMORY while D3DXCreateTextureFromFileEx() Pin
Hanan8883-Jun-08 3:39
Hanan8883-Jun-08 3:39 
Questionwin32 window + dialog + messagebox Pin
Member 38254932-Jun-08 3:29
Member 38254932-Jun-08 3:29 
QuestionRe: win32 window + dialog + messagebox Pin
Mark Salsbery2-Jun-08 6:01
Mark Salsbery2-Jun-08 6:01 
AnswerRe: win32 window + dialog + messagebox Pin
Member 38254932-Jun-08 6:27
Member 38254932-Jun-08 6:27 
AnswerRe: win32 window + dialog + messagebox Pin
Member 38254932-Jun-08 6:30
Member 38254932-Jun-08 6:30 
GeneralRe: win32 window + dialog + messagebox Pin
Mark Salsbery2-Jun-08 6:40
Mark Salsbery2-Jun-08 6:40 
GeneralRe: win32 window + dialog + messagebox Pin
Member 38254932-Jun-08 6:59
Member 38254932-Jun-08 6:59 
GeneralRe: win32 window + dialog + messagebox Pin
Mark Salsbery2-Jun-08 7:06
Mark Salsbery2-Jun-08 7:06 
GeneralRe: win32 window + dialog + messagebox Pin
Member 38254932-Jun-08 7:10
Member 38254932-Jun-08 7:10 
GeneralRe: win32 window + dialog + messagebox Pin
Mark Salsbery2-Jun-08 7:21
Mark Salsbery2-Jun-08 7:21 
GeneralRe: win32 window + dialog + messagebox Pin
Member 38254932-Jun-08 7:28
Member 38254932-Jun-08 7:28 
QuestionStretchBlt - logical units ? Pin
TalSt2-Jun-08 3:26
TalSt2-Jun-08 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.