Elektrine lite

← Feed

@sfml@fosstodon.org

Post #3102967

2025-02-14 22:20 UTC

@eishiya@mastodon.art There's always some upper limit for particle systems, but if done right a vertex array should be able to handle quite a pile of leaves.

Replies (1)

  • @eishiya@mastodon.art 2025-02-14 22:31

    @sfml@fosstodon.org Oh, the particles are fine! Especially since they're instances of a small number of emitters, which reduces the CPU load of calculating their motion. It's animated *tiles* that are a problem, if I animate too many tiles in the map. My tilemaps are also vertex arrays, but I guess all those texture coordinate changes get heavy if I'm modifying four or six vertices per tile per frame, for dozens or even hundreds of tiles at once. I update animations on vertex arrays I don't draw, too.

    Open ##3102968