Solved

Slow images in NT/W2k/XP

Posted on 2002-03-15
6
152 Views
Last Modified: 2010-04-05
I have an app which loads a proprietry file containing a large number of jpeg images and displays them. The images are decompressed and displayed in standard TImages.
If I run the app under W95/W98 etc I can display up to about 40 images/sec.  If I run it under NT/W2k/XP it slows to about 2 or 3 images/sec. This happens on many different machines including some with very fast processors and high power graphics cards. You can see the images repainting on the screen - it's horrible.
The original app was written in Delphi3. I have just converted it to D6 and compiled it on a W2k machine and it is still exactly the same.
Is there some trick and/or setting to make, either to the OS or to the app or component, to make Timages work faster with NT etc?

This is really bugging me - 200 points to the winner.

Regards,  John
0
Comment
Question by:jellison
  • 3
  • 2
6 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 6867966
listening
0
 
LVL 3

Expert Comment

by:SteveWaite
ID: 6868472
Sounds like too many events setting off.
How are you painting?

Regards,
Steve
0
 
LVL 1

Author Comment

by:jellison
ID: 6868683
I first decompress the jpeg into a hidden image. Then I check the jpeg comment data embedded in it before copying it to a visible image by doing

ImageN.Picture := HiddenImage.Picture;

Regards,  John
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Accepted Solution

by:
SteveWaite earned 200 total points
ID: 6869764
Do you do that in OnPaint?

You say you can see it painting the images, is that flashing or the pixels slowly updating.
I'm thinking along the lines of windows doing loads of unneccesary repaints.

I usually BitBlt() to a TPaintBox because I think TImage is intended to keep the picture where TPaintBox must be updated.

Regards,
Steve
0
 
LVL 1

Author Comment

by:jellison
ID: 6947838
Just tidying up. Haven't solved it yet but I will post another question in a different way.
0
 
LVL 3

Expert Comment

by:SteveWaite
ID: 6949062
Thanks! only wish I could help further. I will keep an ey out for the next q.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 185
build html 5 client that connect to indy Tidtcpserver 3 350
FMX StringGrid1->Canvas->FillRect Problem 3 127
Multiple image collision 13 69
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now