Optimized the WPF version of the pop-up player

Source: Internet
Author: User

The performance optimizations of WPF were studied in the idle time of the year, and the practiced hand was re-written before the pop-up screen player was written. Years ago the time is not enough, did not finish, these two days to get a bit, basically made almost.

The main rewrite of the underlying rendering algorithm, the optimization effect is very obvious, try a few Bilibili on the popular barrage, basically full screen of the barrage can still play smoothly. On my i5-750, CPU usage is basically around 16% (the video basically consumes 7% of the CPU), or more satisfying. And I still use the relatively simple algorithm, the beginning of all the barrage to load the screen, there is no use of multi-threaded rendering, or there is some optimization of space.

In addition, by the way to optimize the experience of the bomb screen, plus a stroke, shadow and other rendering effects, it seems to be more clear, and different bullets scrolling speed are not the same, look at the time is very comfortable. And with a simple style configuration tool (choose "Settings" in the right-click menu), you can modify it to your liking. (consider adding more different styles later.)

As follows: Click to download. (requires. Net 4.5 framework), see the previous article for how to use it. Because of the time is more hasty, there are many want to add to the function has not been completed, follow-up if there are empty and then slowly, if there are any comments and suggestions welcome message.

Optimized the WPF version of the pop-up player

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.