How many canvas elements




















The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Is it alright to have hundreds of canvas object on screen?

Ask Question. Asked 4 years, 10 months ago. Active 4 years, 10 months ago. Viewed 1k times. Improve this question. I use pure javascript. Every one of them is different and can be destroyed so I think it is best to have different canvas objects. But technically speaking yes only the Textures are visible. Add a comment. Active Oldest Votes. Improve this answer. That's awesome. Vinayak G. I use 2d context to build the canvas object. Find centralized, trusted content and collaborate around the technologies you use most.

Connect and share knowledge within a single location that is structured and easy to search. Is there a practical limit to the number of HTML5 canvas elements you can have on one page?

Having different images on the same page could slow down the PC, and if those images are scaled down via CSS so you have additional CPU usage , the slowness is overwhelming I already tested it. Ive created x canvases, and the Windows memory usage was about 40MB.

Not so much, really. Consumes about 0. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Is there a practical limit to the number of canvas elements you can have on one page? Ask Question. Asked 10 years, 2 months ago. Active 9 years, 10 months ago. Note: Always specify an id attribute to be referred to in a script , and a width and height attribute to define the size of the canvas.

To add a border, use the style attribute. We just launched W3Schools videos. Get certified by completing a course today! If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:.

Links Link Colors Link Bookmarks.



0コメント

  • 1000 / 1000