electronoora / webaudio-mod-player

MOD/S3M/XM module player for Web Audio
https://mod.haxor.fi/
MIT License
373 stars 53 forks source link

Rewrite the UI to render entirely into a Canvas #29

Open electronoora opened 3 years ago

electronoora commented 3 years ago

Rendering the player UI using a complex DOM and requiring pixel-perfect positioning causes various performance and compatibility issues. Using a pre-rendered fontmap image and rendering the UI fully into a Canvas first, and then to the screen would likely improve performance, and simplify the code.

Clickable UI elements would need a mechanism for registering event callbacks to provide hover/click functionality.

As an additional bonus, this would also rewrite out the dependency to jQuery.