|
-
Module speed issues
Hi, I've been learning how to use the bit blt and associated API functions recently for some simple game programming and have finally hit a stumbling block that I can't seem to find any information on.
Originally, I had all my graphics related code (such as getting DCs, etc) in the Form_Load part of my program. After this getting really messy to edit, I decided to start using a module to separate out graphics related commands. All I did was copy and paste blocks of code from various parts into the module and only changed a few references (such as when I needed information about the size of something on the form and so on). Now, a process which used to take ~350 ms now takes ~2500 ms. I've gone through step by step and it's following the exact same logical process that it was before, but, for some reason, is taking a whole lot longer. Unfortunately, I have no clue why this is.
The variables I use within the module are declared as private for the entire module, as are the api functions. I removed all similar declarations from the form, so there isn't any sort of conflict there. There aren't any unnecessary calls, so that's not it.
If anyone can help explain this quirkiness, I'd certainly appreciate it. I'd hate to have to go back to being sloppy again.
Similar Threads
-
By AM003295 in forum VB Classic
Replies: 2
Last Post: 12-29-2006, 05:20 PM
-
By Leopardfist in forum .NET
Replies: 0
Last Post: 12-23-2006, 09:28 PM
-
Replies: 18
Last Post: 12-13-2006, 02:49 PM
-
Replies: 2
Last Post: 04-02-2002, 03:21 PM
-
By Andrea in forum VB Classic
Replies: 1
Last Post: 02-07-2001, 01:06 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks