3 ms·
I worked on porting a company's Flash library to Canvas, Animate is not that helpful here, it spits out an IIFE that calls into their CreateJs library but you j
by imbnwa 6y ago
I worked on porting a company's Flash library to Canvas, Animate is not that helpful here, it spits out an IIFE that calls into their CreateJs library but you just can't fire and forget because Canvas demands a lot of hand-tuning if you're doing anything other than banner ads to get the same performance profile and Animate won't help you do that work. This is particularly a problem with static images, text, opacity IIRC. Literally every tip you see on MDN for Canvas performance you will not get in that Animate Canvas output.
Jus as an example, Flash is able to redraw only whats needed on the screen whereas Canvas doesn't do this and works like a game where it blows away the whole screen every frame (assuming you're calling clearRect), hence why its best practice to use multiple Canvas elements, off-screen Canvas elements, etc but again, Animate doesn't do that work for you.
And up until the EOL of IE11 next summer you have to manually alter the output to make use of blend modes, which people use a lot of in Flash, if you want full browser support, which is pertinent in domains like healthcare.
- daveoc64 6y agoThere is no end of life date for IE11 next year. Internet Explorer is supported for as long as the OS is, and as such, will see support until at least 2029 on Windows Server 2019. It wouldn't surprise me if the next version of Windows (desktop or server) also includes IE, fully supported for its 10 year lifecycle. There were a lot of clickbait articles in the past year about various Microsoft services dropping support for IE, but it will still be part of Windows, and still get security updates.
- imbnwa 6y agoThanks for the correction, no blend mode ever it is