UltraStar-Deluxe / Play

Free and open source singing game with song editor for desktop, mobile, and smart TV
https://ultrastar-play.com
MIT License
395 stars 73 forks source link

Improve Audio Wave Form Rendering in Song Editor #464

Closed achimmihca closed 2 weeks ago

achimmihca commented 3 months ago

Actual behaviour

Expected behaviour

Implementation

achimmihca commented 2 months ago

Maybe this can be done with a shader.

Unity does not yet support custom shaders for rendering UI Toolkit elements. However, I found that most of the time is spent for the calculation of the wave form. Applying it to the texture takes only few milliseconds.

The audio wave form should always be visible, also during scrolling.

This has been implemented in Melody Mania v1.4.1