Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bltTransparent
#1
How come this works:
Code:
Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y + 32, frmMirage.picItemSetBMP.hDC, 0, 32, SRCCOPY)
WHen this does not?
Code:
Call TransparentBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y + 32, frmMirage.picItemSetBMP.hDC, 0, 32, 32, 64, RGB(0, 0, 0))

I do have encrypted gfx with zlib but I wouldn't think that would make a difference?
Reply
#2
Show us the bltTransparent code.

By the way, this is going to lag your game to hell.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Really? Is blitTransparent that much worse than bitblt?
Reply
#4
BitBlting 50 picture boxes is bad in itself.

I was working with the Konfuze Milestone source the other day, and when I opened the inventory my FPS dropped from 32 to 21.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
My FPS doesn't drop at all with the same visual inventory system. O_o

It stays a constant 32 FPS.
Reply
#6
This was whilst I was running some computer-intensive games.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#7
Robin Wrote:This was whilst I was running some computer-intensive games.

Oh, okay.
Reply
#8
I'm still curious as to why people are blitting into many picboxes -- it's much easier to just make a formula to blit all the items into one picbox, and making the entire picbox clickable by dividing sections up into 32 x 32 boxes and making an array for the item numbers.. Hmm.

Maybe I should make a tutorial.

EDIT: Sorry if this was a gravedigging post -- wasn't watching dates, and just realized that the last reply was August 18th.
Reply
#9
Perfekt Wrote:My FPS doesn't drop at all with the same visual inventory system. O_o

It stays a constant 32 FPS.

I'm pretty sure it doesn't mean other people is going to get the same result.

Why not just blit the inventory? Less code, easier to manage.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)