{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifco6motibxnz7tzefas6arkjzcwfxhd5nidkhg6bilj65aekj3pq",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mmirbxtwiek2"
},
"path": "/t/haskell-ant-simulator-talk/14140#post_15",
"publishedAt": "2026-05-23T04:54:57.000Z",
"site": "https://discourse.haskell.org",
"textContent": "That isn’t a brillo thing but rather a rectangle thing. It probably doesn’t let you do this, but you need to instance that rectangle. Draw it ONCE to a texture (gpu memory) and then you can put a bunch on the screen.\n\nDo the same program but draw the rectangle as a png in GIMP and load it as a bitmap sprite. I bet the FPS improves!\n\nI ran into this in a tech demo with sdl-gpu. It was because I kept calling the “draw a shape” primitive 100s of times per frame. When I drew it once to a texture, it was fine.",
"title": "Haskell Ant Simulator Talk"
}