Solved

Slow images in NT/W2k/XP

Posted on 2002-03-15
6
151 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

13 Experts available now in Live!

Get 1:1 Help Now