Home » U++ Library support » U++ Callbacks and Timers » TimerCallBack interval resolution
Re: TimerCallBack interval resolution [message #59484 is a reply to message #58047] |
Wed, 04 January 2023 20:19 |
superdev
Messages: 20 Registered: August 2022
|
Promising Member |
|
|
mirek wrote on Mon, 24 January 2022 10:47deep wrote on Mon, 24 January 2022 09:56Hi Mirek,
Thanks for explanation.
I was under impression that SetTimeCallback/TimeCallback as independent time trigger.
mirek wrote on Sun, 23 January 2022 00:02
It is supposed to be about 20ms by design and it is not even guaranteed. If you need more precise timing, you need to run it in separate thread.
Small code snippet or link will be helpful to setup repeat callback independent of GUI.
Frankly, the only time I did that was in SDL2 based sound synthetiser and there the period is set by SDL2 sound system.
Still, you can check it here:
https://github.com/ultimatepp/ultimatepp/blob/master/example s/Synth/Core.cpp
(or in examples/SDLSoundDemo)
So how to combine UPP GUI(Ctrl) and SDL2 window (>100 FPS)?
I've tried TopWindow::OpenMain(), then ProcessEvents and render in loop. It works but the loop freezes, for example during TopWindow resizing, dialog showing.
Win7x64, upp-win-17059
[Updated on: Wed, 04 January 2023 20:25] Report message to a moderator
|
|
|
|
|
TimerCallBack interval resolution
By: deep on Wed, 19 January 2022 07:41
|
|
|
Re: TimerCallBack interval resolution
By: Tom1 on Wed, 19 January 2022 13:19
|
|
|
Re: TimerCallBack interval resolution
By: deep on Wed, 19 January 2022 14:27
|
|
|
Re: TimerCallBack interval resolution
By: Tom1 on Wed, 19 January 2022 14:40
|
|
|
Re: TimerCallBack interval resolution
By: Didier on Thu, 20 January 2022 21:43
|
|
|
Re: TimerCallBack interval resolution
By: deep on Fri, 21 January 2022 07:39
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Sat, 22 January 2022 19:32
|
|
|
Re: TimerCallBack interval resolution
By: deep on Mon, 24 January 2022 09:56
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Mon, 24 January 2022 10:47
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Wed, 04 January 2023 20:19
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Thu, 05 January 2023 09:29
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Fri, 06 January 2023 16:20
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Sat, 07 January 2023 09:10
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Sat, 07 January 2023 11:05
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Sat, 07 January 2023 13:15
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Sun, 08 January 2023 06:38
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Tue, 10 January 2023 19:12
|
|
|
Re: TimerCallBack interval resolution
By: mirek on Wed, 11 January 2023 10:36
|
|
|
Re: TimerCallBack interval resolution
By: superdev on Wed, 11 January 2023 18:17
|
Goto Forum:
Current Time: Fri May 03 23:36:10 CEST 2024
Total time taken to generate the page: 0.02069 seconds
|