[Help] Menu Sprite Disappear

Posts 112 of 12 · Page 1 of 1
[Help] Menu Sprite Disappear
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:
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.
Quote Originally Posted by CodeDemon View Post
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

Quote Originally Posted by coogle007 View Post
How you solved? Pls share solution...
Quote Originally Posted by freedompeace View Post
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"
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.
Quote Originally Posted by freedompeace View Post
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.
Quote Originally Posted by Dominic95 View Post
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.
My sprite is sexier :P but yeah, you have to recreate the sprite when the device is changed.
Quote Originally Posted by CodeDemon View Post
My sprite is better :P but yeah, you have to recreate the sprite when the device is changed.
"Your sprite"? S:

Care to explain? ^^
Quote Originally Posted by freedompeace View Post
"Your sprite"? S:

Care to explain? ^^
The one in my sig /
How you solved? Pls share solution...
/Closed, problem solved .
Posts 112 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?