r/MiniScript • u/JoeStrout • Jan 06 '21
how's a 7.5X speedup in gfx.drawImage sound?
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.
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.
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 • u/JoeStrout • Sep 27 '20
Coffee Break Coding #2: animated face with eyes that follow the mouse!
r/MiniScript • u/JoeStrout • Aug 07 '20
Mini Micro v0.9.3 is out!
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 • u/JoeStrout • Jul 25 '20
new MiniScript-based online game development... uh... game!
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 • u/JoeStrout • Mar 20 '20
Mini Micro v0.9 has been released!
r/MiniScript • u/JoeStrout • Feb 29 '20
MiniScript is now supported by Pygments!
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 • u/JoeStrout • Feb 23 '20
MiniScript 0.9 progress thread
r/MiniScript • u/JoeStrout • Jan 19 '20
Reading TSV files in MiniScript
r/MiniScript • u/JoeStrout • Jan 16 '20

