You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
...
What can be found by eye in a table of 1000 rows by scrolling? What problem is being solved?
P.S. Offtopic again...
Andrew, the task was to allow the user to create any table. Like in Sharp. You never know what he may have in mind...)).
I suggest we end the offtopic)).
To be fair, you can only redraw the visible part of the table, and only redraw the invisible part on a scroll event. But again, this was a stress test.
It all depends on how exactly the values in the table are changing. If the values change very quickly and constantly, then it's better to redraw only the visible area, and redraw the invisible during scrolling. If values are changing infrequently, it is better to redraw all at once, so that at the moment of start of scrolling there is no delay because of redrawing. Since you never know exactly how often the values in the table will change, I have chosen a universal method - redraw all at once. You don't see too many tables with values jumping around like crazy, so it's better to redraw them all at once. So, it's better to redraw the whole canvas at once and bypass the delay at the beginning of the scrolling.
SZY. Have you seen how long it takes to redraw a canvas of 900*7000 pixels? Even with MT5, this delay can reach hundreds of milliseconds. It is very unpleasant to get such delay when you start scrolling. Therefore, if the redrawing frequency is low, it is better to draw all at once.
Getting back to the topic - this is one of the reasons for the need for multi-threading in MT5!)
One last thing. In order to avoid problem with processor overload when too often redrawing large tables, I chose another way. I made a special regulator to adjust speed of changing values. That is, the values change quickly, but the user regulates the speed of their output (redrawing) with slider (I showed it). Thus, the load on the processor is reduced at times and the user is more convenient to perceive the information from the table.
Andrei, the task was to allow the user to create any table. Just like in Sharp. You never know what he'll get into his head...))
I suggest to finish offtopic)).
To be fair, you can redraw only the visible part of the table, you can redraw the invisible part only on a scroll event. But again, it was a stress test.
SZY. It all depends on how exactly the values in the table change. If the values change very quickly and constantly, then it's better to redraw only the visible area, and redraw the invisible during scrolling. If values are changing infrequently, it is better to redraw all at once, so that at the moment of start of scrolling there is no delay because of redrawing. Since you never know exactly how often the values in the table will change, I have chosen a universal method - redraw all at once. You don't see too many tables with values jumping around like crazy, so it's better to redraw them all at once. So, it's better to redraw the whole canvas at once and bypass the delay at the beginning of the scrolling.
SZY. Have you seen how long it takes to redraw a canvas of 900*7000 pixels? Even with MT5, this delay can reach hundreds of milliseconds. It is very unpleasant to get such delay when you start scrolling. Therefore, if the redrawing frequency is low, it is better to draw all at once.
Going back to the topic - this is one of the reasons of need of multithreading in MT5!)
One last thing. In order to avoid problem with processor overload when too often redrawing large tables, I chose another way. I made a special regulator to adjust speed of changing values. That is, the values change quickly, but the user regulates the speed of their output (redrawing) with slider (I showed it). Thus, the load on the processor is reduced at times and the user is more convenient to perceive the information from the table.
Peter, do you understand the difference between asynchrony, multithreading and parallelism?
Peter, do you understand the difference between asynchrony, multithreading and parallelism?
I suggest giving an example of asynchronous or parallel operation in the same thread.
OK, bring it on!
OK, Bring it on!
OK, bring it on!
One-handed clapping? Zen outward is not Zen :-)
Well you know for a fact that Peter stays out of the sandbox. He basically can't understand the terms.
what's the point of asking questions like that? well he's going to start blabbering like a professional reporter
Clapping one hand with the other? Zen outwards is not Zen :-)
Well you know for a fact that Peter stays out of the sandbox. He basically can't understand the terms.
what's the point of asking questions like that? well, he'll start blabbering like a professional reporter.
Well, guys, it's elementary logic. Well, how can one thread do something asynchronous, jumping over a single sequence of operations? The only way is to move in a circle and at each iteration make a decision which operations to perform and which to postpone. But is it normal asynchrony? We should not speak about parallelism at all. What kind of parallelism can we have in one thread? ))
Two, or twenty-two threads can be either synchronous or asynchronous. A single thread can include both synchronous and asynchronous operations. You have indicated how. Parallel does not know how to include the parallel ones.
Guys, well, elementary logic. Well, how to make something asynchronous in one thread, jumping over a single sequence of actions? The only way is to move in a circle and at each iteration make a decision which operations to perform and which to postpone. But is it normal asynchrony? We should not speak about parallelism at all. What kind of parallelism can we have in one thread? ))
An asynchronous call does not necessarily create a new thread