I created a HTML5 game using canvas and DOM elements, but I'm facing an issue with flickering DOM elements while playing. The problem seems to be more prevalent in mobile browsers, particularly Chrome.
My game includes a full screen canvas with various objects rendered on it, as well as DOM elements for the GUI (such as pop-ups). The DOM elements are positioned absolutely and scaled using CSS3 on window resize (transform:scale).
Unfortunately, I cannot share the code as it's part of a commercial project, but I have attached some screenshots below:
Screenshot 1
Screenshot 2
Screenshot 3
If anyone has insights on why this flickering is happening and how to solve it, I would greatly appreciate your help.
Thank you!