| Mirage Source http://web.miragesource.net/forums/ |
|
| bltTransparent http://web.miragesource.net/forums/viewtopic.php?f=201&t=2490 |
Page 1 of 1 |
| Author: | William [ Sat Aug 18, 2007 11:29 am ] |
| Post subject: | bltTransparent |
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? |
|
| Author: | Robin [ Sat Aug 18, 2007 12:22 pm ] |
| Post subject: | Re: bltTransparent |
Show us the bltTransparent code. By the way, this is going to lag your game to hell. |
|
| Author: | William [ Sat Aug 18, 2007 1:32 pm ] |
| Post subject: | Re: bltTransparent |
Really? Is blitTransparent that much worse than bitblt? |
|
| Author: | Robin [ Sat Aug 18, 2007 1:51 pm ] |
| Post subject: | Re: bltTransparent |
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. |
|
| Author: | Matt [ Sat Aug 18, 2007 1:55 pm ] |
| Post subject: | Re: bltTransparent |
My FPS doesn't drop at all with the same visual inventory system. O_o It stays a constant 32 FPS. |
|
| Author: | Robin [ Sat Aug 18, 2007 5:04 pm ] |
| Post subject: | Re: bltTransparent |
This was whilst I was running some computer-intensive games. |
|
| Author: | Matt [ Sat Aug 18, 2007 5:22 pm ] |
| Post subject: | Re: bltTransparent |
Robin wrote: This was whilst I was running some computer-intensive games. Oh, okay. |
|
| Author: | Erik [ Thu Sep 27, 2007 11:47 pm ] |
| Post subject: | Re: bltTransparent |
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. |
|
| Author: | Lea [ Thu Sep 27, 2007 11:49 pm ] |
| Post subject: | Re: bltTransparent |
BitBlt is actually a software function ONLY. It never uses the hardware. Using any DirectX function to move an image would be faster than BitBlt. |
|
| Author: | Tony [ Sun Sep 30, 2007 12:35 pm ] |
| Post subject: | Re: bltTransparent |
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. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|