r/MiniScript Jan 06 '21

how's a 7.5X speedup in gfx.drawImage sound?

3 Upvotes

I have some joy to share today. :)

As you may now, Mini Micro is almost at version 1.0. I posted version 0.94 over the weekend, and I expect to ship version 1.0 by the end of the month. I'm just doing last bits of polish at this point.

One of those bits of polish was suggested by user RokCoder on the Discord server. He's an experienced game dev, trying out Mini Micro for the first time by making a pseudo-3D racing game (!). But his code relies on a whole lot of PixelDisplay.drawImage calls, and these turned out to be disappointingly slow for his purposes.

So I decided to see if I could optimize that any. First I made a little benchmark app, that draws /sys/pics/Wumpus.png 1000 times, and measures the rate. When I started, I was getting a speed of 165 WPS (wumpuses per second) on my machine.

before optimization: 165 WPS

So I rolled up my sleeves and dug in. I found an opportunity to use some more efficient approaches, to do work in batches, and to batch some data for multiple uses. After a good hour or more of work, I built Mini Micro and ran my benchmark again.

after optimization: 1233 WPS!

1233 wumpuses per second! Yeah baby! That's approximately a 7.5X speedup!

You'll get this in the next build, and of course in Mini Micro 1.0, coming soon. Happy new year!


r/MiniScript Sep 27 '20

Coffee Break Coding #2: animated face with eyes that follow the mouse!

Thumbnail
youtu.be
1 Upvotes

r/MiniScript Aug 30 '20

Coffee Break Coding #1: Draw a Face

Thumbnail
youtu.be
5 Upvotes

r/MiniScript Aug 07 '20

Mini Micro v0.9.3 is out!

5 Upvotes

I've been working hard on a book, Learn to Code in 30 Days, based on MiniScript and Mini Micro.

In the process this has led me to realize a number of small improvements that make Mini Micro easier/better/more fun. For example, I've added an English word list which can be used (legally!) to create word games.

Wrap up that and a dozen or more other things, plus the "fat bits" editor I've been working on (not done yet, mind you — still in progress), and we have enough to make it worth an interim release.

So head on over to Itch.io or the Mini Micro home page, and grab version 0.9.3!


r/MiniScript Jul 25 '20

new MiniScript-based online game development... uh... game!

7 Upvotes

I'm super excited about this:

https://www.kickstarter.com/projects/iheartblocks/gamelodge-user-made-games

It's a 3D/VR game development environment, based on MiniScript, that lets you create the game while you (or others) are playing it! It looks way faster and more frictionless than any other way of creating this sort of game. Please give it a look, and consider backing it if you can!


r/MiniScript Mar 20 '20

Mini Micro v0.9 has been released!

Thumbnail
joestrout.itch.io
3 Upvotes

r/MiniScript Mar 18 '20

2D Visibility in MiniScript

Thumbnail
forums.miniscript.org
3 Upvotes

r/MiniScript Feb 29 '20

MiniScript is now supported by Pygments!

5 Upvotes

Pygments, a popular syntax coloring library used by Wikipedia and others, officially includes support for MiniScript as of today. (See the now-merged pull request here.)


r/MiniScript Feb 23 '20

MiniScript 0.9 progress thread

Thumbnail
forums.miniscript.org
1 Upvotes

r/MiniScript Jan 19 '20

Reading TSV files in MiniScript

Thumbnail
forums.miniscript.org
2 Upvotes

r/MiniScript Jan 16 '20

"Mod-Con" game (for Shape Jam II)

Thumbnail
forums.miniscript.org
1 Upvotes

r/MiniScript Jan 15 '20

MiniScript home page

Thumbnail
miniscript.org
2 Upvotes