Home > other > WPF do feel caton animation display
WPF do feel caton animation display
Time:09-21
Good bosses, Recently in change of a function, the network transmission real-time picture frames, refresh the flash interface formation, Binding in the Model View of Image, every time after receiving the ImageSource change Model, Test the receiving efficiency, basic can reach 35 + frame can meet the requirements, but when the refresh is obviously not smooth, display refresh only ten to frame, Excuse me is there any other better implementation scheme?
CodePudding user response:
Changes each time a picture, if the image is very big, of course, at this time of rendering will be very card
One way is to build images and display images in different threads, this can improve some performance
To the construction of a BitmapImage EndInit on another thread, pay attention to call Freeze method, and then on the main thread, according to this time will be able to use two threads to parse and display images, is expected to improve some performance, the other for image resolution, most of the graphics card has to the acceleration of JPG, WPF is just can use this part on accelerating, from the perspective of performance improvement, if can return to the JPG will be better, second, if every time is not the whole picture to refresh, also can improve some speed, join every time just return the incremental part, through the way of WriteableBitmap refresh part, also can achieve better performance, I was in the form of a WriteableBitmap flush the contents of a garbage manufacturer for camera, easy on the junk CPU refresh to 60 hz