Comments on Profile Post by Poryg

  1. Poryg
    Poryg
    But if I load one image once and create a thousand textures from that one image, the GPU memory is OK, but GPU gets screwed! :o
    Dec 30, 2018
  2. Isabella Ava
    Isabella Ava
    Sound reasonable
    Dec 30, 2018
  3. AceOfAces_Mod
    AceOfAces_Mod
    Yeah. That may be due to how the GPU is designed. As far as I understand, if you load the image multiple times, you may spawn it as a unique copy of the image, consuming memory. But, depending on how you spawn it as a texture, you may have the GPU make a unique 3D polygon with a texture. That's a rough understanding though.
    Dec 30, 2018
  4. Poryg
    Poryg
    @AceOfAces_Mod It's still crazy though. If I load one image 4000 times, I'm able to spawn 4000 PIXI sprites consuming only 700 MB of GPU memory and 40% GPU. Spawning 1600 sprites from just 16 images (so 100 per one) resulted in memory being OK, but GPU at 98% usage.
    Dec 31, 2018
  5. Poryg
    Poryg
    It's also very interesting that from some point onwards as I keep flooding RAM (not GPU memory, but RAM), when it gets around 700-800 MB usage from all that loading, the GPU usage suddenly goes up by 2-5%... Without even creating any PIXI sprites.
    Dec 31, 2018