Spline display performance in the wxWidgets port #53#57
Spline display performance in the wxWidgets port #53#57asmwarrior wants to merge 1 commit intoJamesBremner:masterfrom
Conversation
|
Yow wrote:
I am surprised that you see no improvement. If DrawLines() is properly implemented it should halve the amount of data transferred to the graphics card. Suggest you take a look at the wxWidgets code. Does not seem to be worthwhile doing this pull. |
|
I looked at the source code of wxWidgets, for the old draw line code: So, it use For the new draw lines function code, it internally use the draw polyline function: I tested for several times, it looks like their performances are nearly the same. Some discussion here: visual c++ - Performance difference between DrawLine and DrawLines? - Stack Overflow
|
remove the dead if condition code, and make the code more compact