A LPDIRECT3DTEXTURE9 is attached to a single LPDIRECT3DDEVICE9.
When the device is lost and reset (and therefore changes), you need to re-initialise it to the new DirectX Device.
Hi guys, it's me Hahaz. Dominic95 is my roommate's account.
I got problem w/ menu sprite, i use source posted by ac1d_buRn:
https://www.mpgh.net/forum/207-combat...ml#post2253065
After some modification i finally make it works, BUT the sprite will gone without crash in game or after map loading screen.
Anyone got this problem b4 & have solution for this?
Edit: Problem solved!
2nd problem...
It lags my gameplay or my fps drop to 20-30 when i open my menu, any solution to get it less laggy? >.<
Last edited by Dominic95; 09-25-2010 at 05:01 AM.
A LPDIRECT3DTEXTURE9 is attached to a single LPDIRECT3DDEVICE9.
When the device is lost and reset (and therefore changes), you need to re-initialise it to the new DirectX Device.
Holy fail :L
If you look at Gingerbread, I have like 50 "sprites" being drawn at once, and I'm still maintaining 2,000FPS.
Post us a snippet of your code, or PM / MSN it to me and I'll look and improve its efficiency for you.
Dominic95 (09-25-2010)
My sprite is sexier :P but yeah, you have to recreate the sprite when the device is changed.
Last edited by CodeDemon; 09-25-2010 at 06:13 AM.
How you solved? Pls share solution...
My last Hack D3d Chams/Esp/Opk/Telekill
A me me piace 'o blues e tutt'e journe aggio cantà'
pecchè so stato zitto e mo è 'o mumento 'e me sfucà'
sono volgare e so che nella vita suonerò
pe chi tene 'e complessi e nun 'e vò
A me me piace 'o zucchero ca scenne dinto 'o cafè
e cu 'na presa d'annice ma chi è meglio 'e me
tengo 'a cazzimma e faccio tutto quello che mi va
pecchè so blues e nun voglio cagnà'
I don't see one in your sig... (I turned on sigs just for this, and I failed at finding it)
[edit] Nevermind, I see the link. Oh ! And you showed us that before :P
Does that mean anything to you? "you need to re-initialise it to the new DirectX Device"
/Closed, problem solved .