This question already has an answer here:
- Why are : visible, control assigned TActions affecting the CPU usage of the application? 2 answers
I use the TActionslists OnUpdate event to enable or disable the buttons in my application.
But I noticed my cpu using 25% of its capability.
When I remove the code triggerd on the event my cpu usage still remains 25%.
Only if I unhook the event completely does my cpu run at expected 1%.
It seems the OnUpdate event fires way to many times.
Is there a way to prevent this behavior?