Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» TCnWaterImage 控件 CPU占90%以上
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: TCnWaterImage 控件 CPU占90%以上
yanghai0437
新警察
UID 18481
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2007-6-24
Status Offline
#1
Post at 2007-6-27 16:19
Profile
|
Blog
|
P.M.
TCnWaterImage 控件 CPU占90%以上
TCnWaterImage 控件 CPU占90%以上,不知道什么原因.
只要在窗体上放上这个控件,再加入图片,然后CPU就占用厉害了
我的是delphi6 + win XP sp2
xjw100
灌水科科长
UID 1476
Digest Posts 0
Credits 134
Posts 74
点点分 134
Reading Access 10
Registered 2005-12-13
Location 桂林
Status Offline
#2
Post at 2007-6-27 20:09
Profile
|
Blog
|
P.M.
我也用了TCnWaterImage ,感觉很好。
不过我是D7+Win2k3
wfymqj
灌水科科长
UID 1023
Digest Posts 0
Credits 178
Posts 70
点点分 178
Reading Access 10
Registered 2005-9-6
Location 湖北
Status Offline
#3
Post at 2007-6-28 08:47
Profile
|
Blog
|
P.M.
在D7+WinXPSp2下也没问题
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2007-6-28 09:57
Profile
|
Blog
|
P.M.
请问楼主,单独运行这个含有CnWaterImage的应用程序会不会占CPU?
tanm123
新警察
UID 17477
Digest Posts 0
Credits 42
Posts 21
点点分 42
Reading Access 10
Registered 2007-6-14
Location 江西九江
Status Offline
#5
Post at 2008-4-8 16:06
Profile
|
Blog
|
P.M.
|
我也遇到过这个问题,以前还没碰到过
现在放CnWaterImage,整个delphi都会卡
不知道现在有没有解决
kidking2001
新警察
UID 40738
Digest Posts 0
Credits 22
Posts 8
点点分 22
Reading Access 10
Registered 2008-8-4
Status Offline
#6
Post at 2008-8-4 21:52
Profile
|
Blog
|
P.M.
帮顶,希望每个问题都得到解决
Dalas
普通灌水员
UID 23356
Digest Posts 0
Credits 63
Posts 20
点点分 63
Reading Access 10
Registered 2007-8-18
Status Offline
#7
Post at 2008-8-5 00:57
Profile
|
Blog
|
P.M.
QUOTE:
原帖由
Passion
于 2007-6-28 09:57 发表
请问楼主,单独运行这个含有CnWaterImage的应用程序会不会占CPU?
经测试,新建一个工程,只放一个CnWaterImage(所有设置全部默认,没写一行代码),运行时CPU占25%~30%。
如果在CnWaterImage上面再放一个Label(相当于把CnWaterImage当背景图),运行时CPU占33%~50%,同时闪烁现象严重。
[
本帖最后由 Dalas 于 2008-8-5 01:15 编辑
]
zjy
管理员
UID 2
Digest Posts
6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
#8
Post at 2008-8-5 17:01
Profile
|
Site
|
Blog
|
P.M.
已提交新版本
对代码进行了部分优化,已提交到CVS上,也可下载附件文件直接覆盖原文件,需要重编译组件包。
优化后,经测试性能大约提升一倍到两倍。在我的双核2G机器上,放1024x768的图片CPU占用12%左右,大家可以测试一下。
PS:这个控件本身并不是为大图片设计的,由于每个象素都要进行运算,大图片的运算量会很大。也不建议在控件上面再放别的控件。
Attachment
:
CnWaterEffect.pas
(2008-8-5 17:01, 10.05 K)
Download count 509
Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Dalas
普通灌水员
UID 23356
Digest Posts 0
Credits 63
Posts 20
点点分 63
Reading Access 10
Registered 2007-8-18
Status Offline
#9
Post at 2008-8-5 18:04
Profile
|
Blog
|
P.M.
不错,效率明显提高。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 13:12
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008743 second(s), 10 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats