Solved

Slow images in NT/W2k/XP

Posted on 2002-03-15
6
154 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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 …

821 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