[Help] Menu Sprite DisappearHi guys, it's me Hahaz. Dominic95 is my roommate's account. I got problem w/ menu sprite, i use source posted by ac1d_buRn: http://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? >.<
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.
Nvm.. i got it worked minutes ago the sprite now stay forever, it's easy fix :/ But it drops my fps to 20-30 fps when i activate my menu, how to it make less lag? xD
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.
Originally Posted by freedompeace 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. uh? Gingerbread? Btw what is your sprite format size? mine is 1024x1024, Alpha PNG.
Originally Posted by Dominic95 uh? Gingerbread? Btw what is your sprite format size? mine is 1024x1024, Alpha PNG. 1. Non-interlaced, high quality PNG, varying size. 2. JPEG, varying size. 3. GIF, varying size.
Originally Posted by CodeDemon My sprite is better :P but yeah, you have to recreate the sprite when the device is changed. "Your sprite"? S: Care to explain? ^^
Originally Posted by CodeDemon The one in my sig / 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 Originally Posted by coogle007 How you solved? Pls share solution... Originally Posted by freedompeace 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. Does that mean anything to you? "you need to re-initialise it to the new DirectX Device"