|
-
Jan 28th, 2008, 10:06 AM
#6
Thread Starter
PowerPoster
Re: iCards Class For Vb .Net
 Originally Posted by opus
Hey Pino, your ICards class did help me a lot in understanding the usage of cards.
I have one remark on speed of drawing when using your class.
You use GethDCc and ReleasehDC for each and every card-drawing seperatly.
When drawing only a limited number of cards that would be no problem, however in a patience like game (like FreeCells) you could have 2 complete decks on screen (104 cards), in this case this way of dealing with the hDC will consume much time.
I suggest to do the GethDC/ReleasehDC only once for each COMPLETE drawing action.
Yea this is a good idea, I think alot of the class could be improved but it did the trick at the time.
Thanks for the feedback!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|