LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2008, 10:28 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
animated image uses 99% of cpu


I have an animated image that I created using Paint Shop Pro on Windows95 years ago. I used it under Linux for a while without any noticeable problem but after upgrading my main machine to Debian Etch, it's using over 99% of cpu time on a 19" lcd monitor.

I then checked what the result is on another machine still running Debian Sarge and the cpu use drops to 30, 40 or 50% depending on the file although the 50% use was for the smallest HTML file rendered.

One cpu is a Sempron 2000 and the other is a Sempron 2400 although the fastest cpu is probably on the machine that renders the slowest.

I spent a lot of time to create that image, to make sure it would not use the cpu too much. The image is 16 bytes by 32 bytes (100 ms), it contains 2 colors (white and gray), 2 diagonal rows of 3 pixels and 1 diagonal row of 2 pixels are gray on a white background. On the second image, the location of these rows of gray pixel is changed to simulate the rain. The .gif file is 146 bytes.

My question is: is that sort of cpu usage (30% to 50%) acceptable for a background tiling image on a 15" crt monitor?

If not, what would be a better way to make these images so that they render reasonably fast enough on most monitors?

Thank you for your help.

Last edited by rblampain; 01-21-2008 at 10:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
animated wallpapers fakie_flip Linux - Software 4 02-23-2008 02:13 AM
Animated wallpapers? MasterOfTheWind Linux - Software 1 12-21-2005 05:05 AM
Animated JIF's to animated MNG's WarlockofVirgo Linux - General 1 08-16-2004 09:39 PM
Animated lilo Riddler Linux - Software 1 03-17-2003 03:49 PM
Animated wallpaper mrsolo Linux - Software 4 11-14-2002 03:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration