delphi - TActionlist, OnUpdate, High CPU Usage? -
this question has reply here:
why : visible, command assigned tactions affecting cpu usage of application? 2 answersi utilize tactionslists onupdate event enable or disable buttons in application. noticed cpu using 25% of capability. when remove code triggerd on event cpu usage still remains 25%. if unhook event cpu run @ expected 1%.
it seems onupdate event fires way many times. there way prevent behavior?
the vcl provides application.actionupdatedelay help in such situations. set non-zero value forcefulness delay between successive action updating.
however, might more prudent find out why action forcing endless repeated onidle conditions. if can stop doing there's no need update delay.
delphi events cpu-usage
No comments:
Post a Comment