Loading a small sprite image from UserMedia.SnapshotURL is very quick. However, any attempt to save the data in text format causes a game to hang / jank and is, consequently, unusable for storing snapshot images as data.
When I copy the in-browser / Inspect Element / Sources / sprite-default-000.png as a data URI it takes approx 1 sec to obtain the data string, hence why I consider this to be a bug in c2.
Attach a Capx
Description of Capx
The UserMedia object is used to transfer a snapshot to a data string or image, depending on your selection.
Steps to Reproduce Bug
- Snapshot to sprite, observe (no discernible) delay.
- Snapshot to text, put the kettle on....
There is no delay when transferring image data from the SnapshotURL to a sprite, but there is approx 15 seconds (in Chrome) of hang-up on my i5 laptop when transferring the data string to a text object.
Converting an image to a data string should not cause a game to freeze.
- Chrome: (YES)
- FireFox: (YES)
- Edge: (YES)
Operating System and Service Pack
Construct 2 Version ID
r240 64 bit.