How do I create a function to process each millisecond? - page 2 123456789...19 New comment Yuriy Vins 2018.09.12 13:25 #11 Реter Konow: In OnInit() add a line, and in OnDeinit() After that, transfer the call of drawing functions from the OnTick() function to the OnTimer() functionok. I'll try it! ) Yuriy Vins 2018.09.12 13:28 #12 Реter Konow: In OnInit() add a line, and in OnDeinit() After that, move call of drawing functions from function OnTick() to function OnTimer()Wow, it works!!!!!! I didn't understand anything though. But... it works. Yuriy Vins 2018.09.12 13:29 #13 Yuriy Vins: OK. I'll give it a try! )Reg Konow I am very grateful to you for the tip! Well, I'll be figuring out "what's how and why! )) Mykola Demko 2018.09.12 13:33 #14 Yuriy Vins: Wow! It's working!!!!!! I didn't understand anything, though. But... It works.The ChartRedraw function has a cost of 40 milliseconds, so it doesn't make sense to update the timer after 16. 40 milliseconds corresponds to 25 frames per second which is equal to human perception speed. expert advisor - miscellaneous Features of the mql5 Discussion of article "MQL5 Реter Konow 2018.09.12 13:34 #15 Nikolay Demko: The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16. 40 milliseconds corresponds to 25 frames per second, which is the same speed of human perception.In all my years of doing graphics, I've never usedChartRedraw(). I don't even know why I need it. ) But I hadn't thought about the 40 ms delay. Maybe it really doesn't make sense to use it more often... How to close the FOREX - Trends, forecasts MQL4 StringToDouble always returns Yuriy Vins 2018.09.12 13:36 #16 Nikolay Demko: The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16. 40 milliseconds corresponds to 25 frames per second, which is equal to human perception speed.Thank you! I'll look into it too! It may come in handy. )) Taras Slobodyanik 2018.09.12 13:38 #17 Nikolay Demko: The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16. 40 milliseconds corresponds to 25 frames per second, which is equal to human perception speed.Nah, you need at least 50fps for real smoothness. Analogue TV drew 50-60 half-frames for a reason. Реter Konow 2018.09.12 13:53 #18 Yuriy Vins: Tag Konow. I'm very grateful to you for the tip! Well, I'll be figuring out "what's how and why!" ))Glad to help. Feel free to contact me if you need it. Alexey Volchanskiy 2018.09.12 16:20 #19 Yuriy Vins: It's not working so far. I'll have to do some more reading...Already written above, the minimum interval is above 16ms. and depends heavily on the CPU load and the number of processes running in the OS. Windows is not a real time OS. Dmitry Fedoseev 2018.09.12 18:19 #20 Taras Slobodyanik: No, you need at least 50 fps for real smoothness. Analogue TV drew 50-60 half-frames for a reason.24 fps is enough if you didn't read TV books as a child)))) 123456789...19 New comment
In OnInit() add a line,
and in OnDeinit()
After that, transfer the call of drawing functions from the OnTick() function to the OnTimer() function
ok. I'll try it! )
In OnInit() add a line,
and in OnDeinit()
After that, move call of drawing functions from function OnTick() to function OnTimer()
Wow, it works!!!!!! I didn't understand anything though. But... it works.
OK. I'll give it a try! )
Reg Konow
I am very grateful to you for the tip! Well, I'll be figuring out "what's how and why! ))
Wow! It's working!!!!!! I didn't understand anything, though. But... It works.
The ChartRedraw function has a cost of 40 milliseconds, so it doesn't make sense to update the timer after 16.
40 milliseconds corresponds to 25 frames per second which is equal to human perception speed.
The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16.
40 milliseconds corresponds to 25 frames per second, which is the same speed of human perception.
In all my years of doing graphics, I've never usedChartRedraw(). I don't even know why I need it. )
But I hadn't thought about the 40 ms delay. Maybe it really doesn't make sense to use it more often...
The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16.
40 milliseconds corresponds to 25 frames per second, which is equal to human perception speed.
Thank you! I'll look into it too! It may come in handy. ))
The ChartRedraw function has a cost of 40 milliseconds, so there is no point in updating the timer after 16.
40 milliseconds corresponds to 25 frames per second, which is equal to human perception speed.
Nah, you need at least 50fps for real smoothness.
Analogue TV drew 50-60 half-frames for a reason.
Tag Konow.
I'm very grateful to you for the tip! Well, I'll be figuring out "what's how and why!" ))
Glad to help. Feel free to contact me if you need it.
It's not working so far. I'll have to do some more reading...
Already written above, the minimum interval is above 16ms. and depends heavily on the CPU load and the number of processes running in the OS. Windows is not a real time OS.
No, you need at least 50 fps for real smoothness.
Analogue TV drew 50-60 half-frames for a reason.
24 fps is enough if you didn't read TV books as a child))))