Skip to content

Adds aurora.psh example#42

Merged
maximecb merged 2 commits into
maximecb:mainfrom
ruifonseca:example/aurora
Dec 20, 2025
Merged

Adds aurora.psh example#42
maximecb merged 2 commits into
maximecb:mainfrom
ruifonseca:example/aurora

Conversation

@ruifonseca
Copy link
Copy Markdown
Contributor

This example builds on mandelbrot.psh.
It's called Aurora due to the color palette used and the effect it produces.

I wanted to play with actors, and the Mandelbrot example takes ~2.5 seconds on my laptop.
This brings it down to ~700ms.

@maximecb
Copy link
Copy Markdown
Owner

maximecb commented Dec 20, 2025

Thanks Rui!

Suggestions: I think it might run faster if you render entire rows of pixels at a time into a ByteArray. There is now an easy ByteArray.set_u32(i) method which can allow you to set the color of a pixel by index in a row of pixels. You can also use the memcpy() method in the main thread to copy rows of pixels an entire row at a time into the final image which is really fast (throughput is gigabytes per second).

You could also try adding some shades or purple in there as well :)

image

@maximecb maximecb merged commit 9d77d5b into maximecb:main Dec 20, 2025
1 check passed
maximecb added a commit that referenced this pull request Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants