Jump to content

How to display 250k cells in a grid.


Recommended Posts

I need to display 250k  cells/rectangles at once, when drawing more than 20k rectangles, the frame rate drops below 30fps.

I have nothing running once the grid is drawn, yet the fps stays low, not sure why that is. I would also need to update some of the cell color once in a while.

I have tried using lines, instead of rectangles (vertical and horizontal lines to form a grid), but performance seems to be about the same.

Code: https://playcode.io/638898/

Assuming drawing this many rectangles are not currently possible at 30fps, what would be some other alternatives? 


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...