Solved

Is it possible to speed up my VB6 application with new version of GDIPlus?

Posted on 2011-03-08
4
505 Views
Last Modified: 2012-05-11
Hi experts!

Well, I’m not expect in GDIPlus application, but I have ready code I should maintain.  It is written in Vb6 and the primary task is to increase the speed of it as it does extensive render of different moving object and they not run smooth under XP.

So my idea is to update a version of GDI library used. Can somebody tell me can I expect better speed if I mange to update version? I need update of speed with 30-50 % , I use powerful CPU now however this doesn’t seem to help a lot.

I found a upper version 6.1.76 but is I update only this DLL it make error with my application. So I wonder, doest’t cost the effort to try to make update to this version ?

Any offer will be welcome.
 New version which I found Current used version
0
Comment
Question by:dvplayltd
  • 2
4 Comments
 
LVL 16

Expert Comment

by:HooKooDooKu
ID: 35069638
Gut instinct tells me that you are not likely to get a 30-50% speed boost by installing any sort of update from Microsoft.  From my experience, Microsoft is not in the business of modifying their code to make it run faster so much as they are in the business of adding more features to their code.  After all, there was a saying I heard years ago that said "What Intel givith [in speed performance] Microsoft takeith [to expand functionality]".

As an example, I learned the hard way that the VB File Length function was still opening the file and reading through the contents to discover the length (at least back in the days of VB4).  Because I had to determine the size of thousands of files, I had to resort to VB calling Windows API functions to get the file length because the VB way was WAY TOO SLOW.

So IMHO, the only way you are likely to see a 30-50% speed boost is to rewrite your code in something more like C++ and possibly even ASM to get the speed boosts you need.  Depending upon your needs, that would allow you to write the logic using multi-threading and taking advantage of modern multi-core processors.
0
 
LVL 10

Accepted Solution

by:
cool12399 earned 500 total points
ID: 35095721
Hi,

Very unlikely. GDI is hardware accellerated, whereas GDI+ is not.

You'll actually need to 'recode' your existing application if you want to see a performance boost.

I.e., if you are using "DrawLine" -- instead of using that -- use "Drawlines" with an array of points & you can see a performance increase. That is one example.

You'll need to review the existing docs for GDI, & test out different functions to see what gives you a performance increase.
0
 

Author Comment

by:dvplayltd
ID: 35096815
To cool12399

Hyym. I have enoght experience (10+ years) in both hadrware and software and know that increase with 20-50 % is not easy at all.

But I was hope that new version of GDI+ could be hardware accelerated from video card .. Do you sure that GDI+ is not and will be not at all hardware supported? It is 100 % sure that only GDI will use new  hardware power?

But to access GDI from VB6 is not possible, also this mean that I should totally rewrite my application . OK .. i see you are in matter - which techonlofy give me hardware accelleration ? I need to show cralw text in screen (tex going from left to right). I appears that GDI+ is not fast enoght for this and a jump while text is move can be seen now with mu current sofwtare.
0
 

Author Closing Comment

by:dvplayltd
ID: 35127033
10x
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question