Home » U++ Library support » TopWindow&PopUp, TrayIcon » How often is Update called? Is there a similiar frequently called method?
How often is Update called? Is there a similiar frequently called method? [message #50181] |
Fri, 17 August 2018 14:53  |
rafiwui
Messages: 105 Registered: June 2017 Location: Stuttgart, Germany
|
Experienced Member |
|
|
I am not sure if this fits in here but because in my specific case it's about TopWindow it should be okay.
So the thing is, I need to run a method that is working in the background (or better every "frame" if that exists). It should start getting called after the window got shown.
So I searched a bit here in the forum and in the documentation and I tried calling it inside the virtual void State(int reason) method but that doesn't work (well I will get back to this a bit later) and I tried calling it inside the virtual void Updater() but that doesn't work as well because it does not get called frequently.
That is leading me to my question in the title:
How often is Update() called?
And because I think that it does not happen very often: Is there a virtual method or a CALLBACK that is called very frequently (1 or more times in a second)?
Getting back to the virtual void State(int reason) method I mentioned ealier:
It probably would work if I start a background thread here but because I want to avoid that I am asking the above question
Greetings
Daniel
|
|
|
Goto Forum:
Current Time: Fri Apr 25 15:11:05 CEST 2025
Total time taken to generate the page: 0.02558 seconds
|