External Publication
Visit Post

Haskell Ant Simulator Talk

Haskell Community [Unofficial] May 23, 2026
Source
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. Do the same program but draw the rectangle as a png in GIMP and load it as a bitmap sprite. I bet the FPS improves! I 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.

Discussion in the ATmosphere

Loading comments...