[HN Gopher] Mandala: A little plaground for testing pixel logic ...
___________________________________________________________________
Mandala: A little plaground for testing pixel logic patterns
Author : surprisetalk
Score : 46 points
Date : 2024-03-07 23:00 UTC (3 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| VMG wrote:
| > Generating a screen takes a couple of seconds on hardware as it
| requires per-pixel processing of the entire 400x240 screen =
| 96,000 pixels
|
| This doesn't sound right - it should take a few milliseconds to
| fill a full-HD screen on any semi modern device
| isoprophlex wrote:
| Yeah uh I came here to say the same... maybe if you run it as a
| nested loop in micropython on an underspecced device?
| news_to_me wrote:
| Per-pixel is pretty slow, most fast algorithms don't do this.
| Also, this is on the Playdate, which uses a somewhat lean ARM
| chip (stm32f7).
| Sharlin wrote:
| _Quake_ renders itself per-pixel. With a mid-90s CPU (no
| GPU). And it does vastly more computing than just one bit op
| per pixel. Any remotely modern computer could fill hundreds
| (if not >1000) of 96k frames per second. The STM32f7 could
| likely do it at real-time frame rates with some
| optimizations.
| radicality wrote:
| Glancing at the code, it uses some library called "playdate",
| so I presume it's for this device: https://play.date/
| gelstudios wrote:
| Assuming some values of "modern device" :)
|
| That readme should include a mention of its intended platform
| .... "on a playdate"
|
| Luckily you can run it in the simulator without one!
| nyanpasu64 wrote:
| Is it possible to JIT Lua mathematical expressions into native
| assembly for more efficient execution?
| isoprophlex wrote:
| See also the 1D version of this, rendered as audio: "bytebeat"
| music. Surprisingly complex music from very simple modular
| arithmetic and bit shifting.
|
| https://youtu.be/tCRPUv8V22o
| pimlottc wrote:
| I feel like this could be done on shadertoy fairly easily, no?
___________________________________________________________________
(page generated 2024-03-10 23:00 UTC)