| |

VerySource

 Forgot password?
 Register
Search
View: 4539|Reply: 13

How to improve the speed of drawing

[Copy link]

2

Threads

12

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-11-30 22:30:01
| Show all posts |Read mode
I found that the drawing speed is very slow whether it is using API or other methods


Is there any way to improve
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-1 11:15:01
| Show all posts
First draw in the memory, and then copy the whole to the control to be displayed.
Reply

Use magic Report

2

Threads

12

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-12-1 11:30:01
| Show all posts
cooler42Show me some code
Reply

Use magic Report

0

Threads

13

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-12-1 11:45:01
| Show all posts
It depends on what the host is doing. It is used to draw waveforms, and GDI is quite fast for small changes in the image.
If you want to redraw the entire frame on a large scale, it seems you need to use DirectDraw or OpenGL. But I don’t even say it, just check the data and you will be able to draw soon.
Reply

Use magic Report

2

Threads

12

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-12-1 12:30:01
| Show all posts
I'm even drawing a waveform graph
Reply

Use magic Report

0

Threads

16

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-12-1 12:45:01
| Show all posts
It seems that the delphi box has a code, you can find it, I remember it was not sent long ago
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-12-1 13:15:01
| Show all posts
OpenGL
D3D
You can directly operate the graphics card, faster
It's quite possible to draw waveform graphs with normal API speed
Reply

Use magic Report

2

Threads

12

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-12-1 13:30:01
| Show all posts
It's quite possible to draw waveform graphs with normal API speed

>>

No way, mine is about to be 1MS. It has to drop a lot.
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-12-1 13:45:01
| Show all posts
1MS requirements are a bit high, but it is also possible to draw nearly 10,000 straight lines. Is 10,000 straight lines not enough to display a waveform?
Besides, what do you want to do so fast? Every 40 milliseconds is considered continuous by the human eye.
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-12-1 14:00:01
| Show all posts
1ms is not necessary
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list