25

Nasa landed on the moon with 4kb of ram. I can't draw 100x100 grid on canvas without lag with 1milion kb of ram...

Comments
  • 3
    Isn't the logic flawed?

    Time to wake up instead of being a sheep.

    Psst: they never landed on Moon but in Kazakhstan.
  • 1
    The HTML5 Canvas2D API is an absolutely slow piece of crap, mostly due to one whole draw call to the GPU being used per canvas drawing operation. The WebGL and WebGL 2 APIs completely change this and you can utilize the full power of the GPU right from a web page. You write code that runs on the GPU (a fragment shader and a vertex shader) and also some JS code to send the vertices to the GPU and configure various things. It's not as hard as it possibly sounds, but this enables you to get thousands of fps (if you don't cap it) when drawing a 10x10 grid.
  • 0
    I'm sure NASA had nasty lags as well
    XD
  • 4
    NASA used a highly optimized version of electron.
  • 0
    @Hastouki 😂😂😂😂 sorry that got to me
Add Comment